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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chad Rosier 2013-02-12 19:31:23 +00:00
parent 8c0d29fee9
commit ab9d251e85

View 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();