[llvm-commits] [llvm] r124603 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Roman Divacky
rdivacky at freebsd.org
Mon Jan 31 12:56:49 PST 2011
Author: rdivacky
Date: Mon Jan 31 14:56:49 2011
New Revision: 124603
URL: http://llvm.org/viewvc/llvm-project?rev=124603&view=rev
Log:
Error on all .code* directives instead of just .code16 as they
all lead to a silent miscompilation of 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=124603&r1=124602&r2=124603&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Jan 31 14:56:49 2011
@@ -1065,8 +1065,8 @@
if (IDVal == ".include")
return ParseDirectiveInclude();
- if (IDVal == ".code16")
- return TokError(".code16 not supported yet");
+ if (IDVal.startswith(".code"))
+ return TokError(Twine(IDVal) + " not supported yet");
// Look up the handler in the handler table.
std::pair<MCAsmParserExtension*, DirectiveHandler> Handler =
More information about the llvm-commits
mailing list