aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-08-02 14:25:49 +0000
committerNirav Dave <niravd@google.com>2016-08-02 14:25:49 +0000
commit9b0ee9c522b53c5a9859fd2cbd7e056739dcbcd2 (patch)
treec8908127a042295b1d09b132fec4e5b5bb5f6091 /llvm/lib/CodeGen/MachineFunction.cpp
parentb5a60ec7feee21a68230761e1f4d71526ee51a0e (diff)
downloadllvm-9b0ee9c522b53c5a9859fd2cbd7e056739dcbcd2.zip
llvm-9b0ee9c522b53c5a9859fd2cbd7e056739dcbcd2.tar.gz
llvm-9b0ee9c522b53c5a9859fd2cbd7e056739dcbcd2.tar.bz2
[MC] Fix handling of end-of-line preprocessor comments
Recommitting after fixing test. 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: 277459
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions