[ms-inline asm] Accept the emit directive as either _emit or __emit.
authorChad Rosier <mcrosier@apple.com>
Tue, 12 Feb 2013 19:31:23 +0000 (19:31 +0000)
committerChad Rosier <mcrosier@apple.com>
Tue, 12 Feb 2013 19:31:23 +0000 (19:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174998 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp

index 4d6756e1b62ff01ccf576ecfe1e34a21333ae190..a4b4a549579175cb2732722de343271965f89ef3 100644 (file)
@@ -1446,8 +1446,8 @@ bool AsmParser::ParseStatement(ParseStatementInfo &Info) {
     return Error(IDLoc, "unknown directive");
   }
 
-  // _emit
-  if (ParsingInlineAsm && IDVal == "_emit")
+  // _emit or __emit
+  if (ParsingInlineAsm && (IDVal == "_emit" || IDVal == "__emit"))
     return ParseDirectiveEmit(IDLoc, Info);
 
   CheckForValidSection();