diff options
author | Kevin Enderby <enderby@apple.com> | 2010-12-24 00:12:02 +0000 |
---|---|---|
committer | Kevin Enderby <enderby@apple.com> | 2010-12-24 00:12:02 +0000 |
commit | d82ed5b7347173a827969966db740c2b34d605b9 (patch) | |
tree | 042088a2370ba864bb3b39f803d31a4eeab731e5 /test/MC/AsmParser | |
parent | f12eee75d1f8a3e276d03cc0fda95d18097fb08e (diff) | |
download | external_llvm-d82ed5b7347173a827969966db740c2b34d605b9.zip external_llvm-d82ed5b7347173a827969966db740c2b34d605b9.tar.gz external_llvm-d82ed5b7347173a827969966db740c2b34d605b9.tar.bz2 |
In llvm-mc parse a Hash token as a full line comment. Allows handling of
preprocessed .s files and matches darwin gas. rdar://8798690
Also fix a comment on the next line of AsmParser.cpp after this new code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122531 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/AsmParser')
-rw-r--r-- | test/MC/AsmParser/full_line_comment.s | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/MC/AsmParser/full_line_comment.s b/test/MC/AsmParser/full_line_comment.s new file mode 100644 index 0000000..4c91986 --- /dev/null +++ b/test/MC/AsmParser/full_line_comment.s @@ -0,0 +1,8 @@ +// RUN: llvm-mc -triple arm-apple-darwin10 %s | FileCheck %s +# this is a full line comment starting at column 1 + # this starting at column 2 + + .data +// CHECK: .long 0 +.long 0 +# .long 1 this line is commented out |