[llvm-commits] [llvm] r124498 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Roman Divacky
rdivacky at freebsd.org
Fri Jan 28 11:29:48 PST 2011
Author: rdivacky
Date: Fri Jan 28 13:29:48 2011
New Revision: 124498
URL: http://llvm.org/viewvc/llvm-project?rev=124498&view=rev
Log:
Error on .code16 instead of producing wrong (32bit) code.
Modified:
llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Modified: llvm/trunk/lib/MC/MCParser/AsmParser.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCParser/AsmParser.cpp?rev=124498&r1=124497&r2=124498&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Fri Jan 28 13:29:48 2011
@@ -1065,6 +1065,9 @@
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);
More information about the llvm-commits
mailing list