[llvm-commits] [llvm] r74463 - in /llvm/trunk: test/MC/AsmParser/exprs.s tools/llvm-mc/AsmLexer.h

Daniel Dunbar daniel at zuster.org
Mon Jun 29 15:00:58 PDT 2009


Author: ddunbar
Date: Mon Jun 29 17:00:57 2009
New Revision: 74463

URL: http://llvm.org/viewvc/llvm-project?rev=74463&view=rev
Log:
llvm-mc: Recognize C++ style comments.

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

Modified: llvm/trunk/test/MC/AsmParser/exprs.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/AsmParser/exprs.s?rev=74463&r1=74462&r2=74463&view=diff

==============================================================================
--- llvm/trunk/test/MC/AsmParser/exprs.s (original)
+++ llvm/trunk/test/MC/AsmParser/exprs.s Mon Jun 29 17:00:57 2009
@@ -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

Modified: llvm/trunk/tools/llvm-mc/AsmLexer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-mc/AsmLexer.h?rev=74463&r1=74462&r2=74463&view=diff

==============================================================================
--- llvm/trunk/tools/llvm-mc/AsmLexer.h (original)
+++ llvm/trunk/tools/llvm-mc/AsmLexer.h Mon Jun 29 17:00:57 2009
@@ -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();
 };





More information about the llvm-commits mailing list