This is an archive of the discontinued LLVM Phabricator instance.

[MC] Fix handling of end-of-line preprocessor comments
ClosedPublic

Authored by niravd on Aug 1 2016, 8:36 AM.

Details

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.

Diff Detail

Repository
rL LLVM

Event Timeline

niravd updated this revision to Diff 66327.Aug 1 2016, 8:36 AM
niravd retitled this revision from to [MC] Fix handling of end-of-line preprocessor comments.
niravd updated this object.
niravd added reviewers: rnk, majnemer.
niravd added a subscriber: llvm-commits.
pirama added a subscriber: pirama.Aug 1 2016, 9:12 AM
rnk accepted this revision.Aug 1 2016, 1:30 PM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Aug 1 2016, 1:30 PM
This revision was automatically updated to reflect the committed changes.