llvm-mc: Recognize C++ style comments.
authorDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 22:00:57 +0000 (22:00 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Mon, 29 Jun 2009 22:00:57 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74463 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/AsmParser/exprs.s
tools/llvm-mc/AsmLexer.h

index 472b4cfe8edf7d4b5b597945b907e3a751373e21..1627d9eb203c829e7021a896d2d609da946b6beb 100644 (file)
@@ -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
index 30ab2664d2525ffe636a5ba1e04e9de99a9f66a2..5d0002d4d85f52d3325acf9b52627959c2ee5779 100644 (file)
@@ -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();
 };