[llvm] r174998 - [ms-inline asm] Accept the emit directive as either _emit or __emit.

Chad Rosier mcrosier at apple.com
Tue Feb 12 11:31:24 PST 2013


Author: mcrosier
Date: Tue Feb 12 13:31:23 2013
New Revision: 174998

URL: http://llvm.org/viewvc/llvm-project?rev=174998&view=rev
Log:
[ms-inline asm] Accept the emit directive as either _emit or __emit.

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=174998&r1=174997&r2=174998&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Tue Feb 12 13:31:23 2013
@@ -1446,8 +1446,8 @@ bool AsmParser::ParseStatement(ParseStat
     return Error(IDLoc, "unknown directive");
   }
 
-  // _emit
-  if (ParsingInlineAsm && IDVal == "_emit")
+  // _emit or __emit
+  if (ParsingInlineAsm && (IDVal == "_emit" || IDVal == "__emit"))
     return ParseDirectiveEmit(IDLoc, Info);
 
   CheckForValidSection();





More information about the llvm-commits mailing list