diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-01-28 19:29:48 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-01-28 19:29:48 +0000 |
commit | cb727801760a26441d08b593f3a5dc2b5dbdf16d (patch) | |
tree | 6d76987a283711f4404276cc84307c63ea85bd04 /lib/MC | |
parent | 79f4eea7a3375aef93bf0d9fb1785ffee801eb84 (diff) |
Error on .code16 instead of producing wrong (32bit) code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124498 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC')
-rw-r--r-- | lib/MC/MCParser/AsmParser.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp index 891930d9e7..b66eeb9cf0 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1065,6 +1065,9 @@ bool AsmParser::ParseStatement() { if (IDVal == ".include") return ParseDirectiveInclude(); + if (IDVal == ".code16") + return TokError(".code16 not supported yet"); + // Look up the handler in the handler table. std::pair<MCAsmParserExtension*, DirectiveHandler> Handler = DirectiveMap.lookup(IDVal); |