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

llvm-svn: 174998
This commit is contained in:
Chad Rosier 2013-02-12 19:31:23 +00:00
parent 62b943935d
commit 93d629fdb8
1 changed files with 2 additions and 2 deletions

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