aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-29 22:00:57 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-29 22:00:57 +0000
commit1ad7edc2125d57dcd6c54810d7a4a5f4f77da34b (patch)
treebac66221d81c925589c7a2e84df08076b9e7a97b
parent383a4a8db04456b8e5a59a35b3f967c4aa9c90cf (diff)
llvm-mc: Recognize C++ style comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74463 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/MC/AsmParser/exprs.s8
-rw-r--r--tools/llvm-mc/AsmLexer.h2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/MC/AsmParser/exprs.s b/test/MC/AsmParser/exprs.s
index 472b4cfe8e..1627d9eb20 100644
--- a/test/MC/AsmParser/exprs.s
+++ b/test/MC/AsmParser/exprs.s
@@ -1,8 +1,8 @@
-# FIXME: For now this test just checks that llvm-mc works. Once we have .macro,
-# .if, and .abort we can write a better test (without resorting to miles of
-# greps).
+// FIXME: For now this test just checks that llvm-mc works. Once we have .macro,
+// .if, and .abort we can write a better test (without resorting to miles of
+// greps).
-# RUN: llvm-mc %s > %t
+// RUN: llvm-mc %s > %t
.byte !1 + 2
.byte !0
diff --git a/tools/llvm-mc/AsmLexer.h b/tools/llvm-mc/AsmLexer.h
index 30ab2664d2..5d0002d4d8 100644
--- a/tools/llvm-mc/AsmLexer.h
+++ b/tools/llvm-mc/AsmLexer.h
@@ -108,7 +108,7 @@ private:
asmtok::TokKind LexIdentifier();
asmtok::TokKind LexPercent();
asmtok::TokKind LexSlash();
- asmtok::TokKind LexHash();
+ asmtok::TokKind LexLineComment();
asmtok::TokKind LexDigit();
asmtok::TokKind LexQuote();
};