[llvm-commits] [llvm] r124608 - /llvm/trunk/lib/MC/MCParser/AsmParser.cpp
Roman Divacky
rdivacky at freebsd.org
Mon Jan 31 13:19:43 PST 2011
Author: rdivacky
Date: Mon Jan 31 15:19:43 2011
New Revision: 124608
URL: http://llvm.org/viewvc/llvm-project?rev=124608&view=rev
Log:
Enumerate .code16/32/64 instead of checking .code prefix. This
unbreaks some ARM tests.
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=124608&r1=124607&r2=124608&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCParser/AsmParser.cpp (original)
+++ llvm/trunk/lib/MC/MCParser/AsmParser.cpp Mon Jan 31 15:19:43 2011
@@ -1065,7 +1065,7 @@
if (IDVal == ".include")
return ParseDirectiveInclude();
- if (IDVal.startswith(".code"))
+ if (IDVal == ".code16" || IDVal == ".code32" || IDVal == ".code64")
return TokError(Twine(IDVal) + " not supported yet");
// Look up the handler in the handler table.
More information about the llvm-commits
mailing list