diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-12 11:19:04 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-05-12 11:19:04 +0000 |
commit | 5cdf0add9e2d9ceda861299d614e3efb7a069462 (patch) | |
tree | fb6313ac1fa280c95501d61cdfbf24271fef5802 /lib/MC | |
parent | e14a3c5084838b40bca4b006cbf78500c874a043 (diff) | |
download | external_llvm-5cdf0add9e2d9ceda861299d614e3efb7a069462.zip external_llvm-5cdf0add9e2d9ceda861299d614e3efb7a069462.tar.gz external_llvm-5cdf0add9e2d9ceda861299d614e3efb7a069462.tar.bz2 |
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
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 80e101f..8ac0fd2 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. |