aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
diff options
context:
space:
mode:
authorNirav Dave <niravd@google.com>2016-08-02 01:05:29 +0000
committerNirav Dave <niravd@google.com>2016-08-02 01:05:29 +0000
commit3140fec182918a4d4bc5fbedb6c09413a4cb098b (patch)
treeb59d68943f336c01a478490c9093aa7229cf97c7 /llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp
parent1734b97901e6a1cc909f79fca5fb1d597851f12e (diff)
downloadllvm-3140fec182918a4d4bc5fbedb6c09413a4cb098b.zip
llvm-3140fec182918a4d4bc5fbedb6c09413a4cb098b.tar.gz
llvm-3140fec182918a4d4bc5fbedb6c09413a4cb098b.tar.bz2
[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
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockFrequencyInfo.cpp')
0 files changed, 0 insertions, 0 deletions