[llvm-commits] [llvm] r171784 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Chad Rosier mcrosier at apple.com
Mon Jan 7 12:34:12 PST 2013


Author: mcrosier
Date: Mon Jan  7 14:34:12 2013
New Revision: 171784

URL: http://llvm.org/viewvc/llvm-project?rev=171784&view=rev
Log:
[ms-inline asm] Make sure the NullStreamParser doesn't try to emit labels when
parsing MS-style inline assembly.

Modified:
    llvm/trunk/lib/MC/MCParser/AsmParser.cpp

Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=171784&r1=171783&r2=171784&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Jan  7 14:34:12 2013
@@ -1214,7 +1214,8 @@
       return Error(IDLoc, "invalid symbol redefinition");
 
     // Emit the label.
-    Out.EmitLabel(Sym);
+    if (!ParsingInlineAsm)
+      Out.EmitLabel(Sym);
 
     // If we are generating dwarf for assembly source files then gather the
     // info to make a dwarf label entry for this label if needed.





More information about the llvm-commits mailing list