diff options
author | Roman Divacky <rdivacky@freebsd.org> | 2011-01-31 21:19:43 +0000 |
---|---|---|
committer | Roman Divacky <rdivacky@freebsd.org> | 2011-01-31 21:19:43 +0000 |
commit | bb6d14fbfe9b665aff5778e0eaecaabacfaf0bcc (patch) | |
tree | 3b5d784062a4364bac833f9d8aa66954500bfc51 /lib/MC | |
parent | 1531511b2c6078c848bdbf2dc4c13972f84b27a4 (diff) |
Enumerate .code16/32/64 instead of checking .code prefix. This
unbreaks some ARM tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124608 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 7a6587811c..61ceee45f5 100644 --- a/lib/MC/MCParser/AsmParser.cpp +++ b/lib/MC/MCParser/AsmParser.cpp @@ -1065,7 +1065,7 @@ bool AsmParser::ParseStatement() { 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. |