1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/lib/MC/MCParser
Nirav Dave 56e1aec7c5 [MC] Fix handling of end-of-line preprocessor comments
Summary:
When parsing assembly where the line comment syntax is not hash, the
lexer cannot distinguish between hash's that start a hash line comment
and one that is part of an assembly statement and must be distinguished
during parsing. Previously, this was incompletely handled by not checking
for EndOfStatement at the end of statements and interpreting hash
prefixed statements as comments.

Change EndOfStatement Parsing to check for Hash comments and reintroduce
Hash statement parsing to catch previously handled cases.

Reviewers: rnk, majnemer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D23017

llvm-svn: 277407
2016-08-02 01:05:29 +00:00
..
AsmLexer.cpp [MC] When emitting output hash comments always use standard line comment seperator 2016-07-29 14:42:00 +00:00
AsmParser.cpp [MC] Fix handling of end-of-line preprocessor comments 2016-08-02 01:05:29 +00:00
CMakeLists.txt Fix header path in CMake. NFC. 2015-06-19 20:49:02 +00:00
COFFAsmParser.cpp Move MCTargetAsmParser.h to llvm/MC/MCParser where it belongs. 2016-01-27 10:01:28 +00:00
DarwinAsmParser.cpp [MC] Cleanup Error Handling in AsmParser 2016-07-18 15:24:03 +00:00
ELFAsmParser.cpp [MC] Cleanup Error Handling in AsmParser 2016-07-18 15:24:03 +00:00
LLVMBuild.txt
MCAsmLexer.cpp Ignore Lexing errors in macro body definitions 2016-06-02 17:15:05 +00:00
MCAsmParser.cpp Annotate dump() methods with LLVM_DUMP_METHOD, addressing Richard Smith r259192 post commit comment. 2016-01-29 20:50:44 +00:00
MCAsmParserExtension.cpp
MCTargetAsmParser.cpp Move MCTargetAsmParser.h to llvm/MC/MCParser where it belongs. 2016-01-27 10:01:28 +00:00