llvm-mc: Recognize C++ style comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74463 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/MC/AsmParser/exprs.s b/test/MC/AsmParser/exprs.s
index 472b4cf..1627d9e 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 30ab266..5d0002d 100644
--- a/tools/llvm-mc/AsmLexer.h
+++ b/tools/llvm-mc/AsmLexer.h
@@ -108,7 +108,7 @@
asmtok::TokKind LexIdentifier();
asmtok::TokKind LexPercent();
asmtok::TokKind LexSlash();
- asmtok::TokKind LexHash();
+ asmtok::TokKind LexLineComment();
asmtok::TokKind LexDigit();
asmtok::TokKind LexQuote();
};