From: Benjamin Kramer Date: Sat, 12 May 2012 11:19:04 +0000 (+0000) Subject: AsmParser: Give a nice error message for .code16gcc, which is currently unsupported. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5cdf0add9e2d9ceda861299d614e3efb7a069462;p=oota-llvm.git AsmParser: Give a nice error message for .code16gcc, which is currently unsupported. Patch by Team PaX! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156708 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 80e101f748b..8ac0fd244c0 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1257,7 +1257,7 @@ bool AsmParser::ParseStatement() { if (IDVal == ".incbin") return ParseDirectiveIncbin(); - if (IDVal == ".code16") + if (IDVal == ".code16" || IDVal == ".code16gcc") return TokError(Twine(IDVal) + " not supported yet"); // Look up the handler in the handler table.