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 | 9a58919c8e24503f047068a8bf521d307c817f9d (patch) | |
tree | cb45604a76a609ce35f6376d0b559ed625b9acf1 | |
parent | e9f2861551e8e7ebeeaddea5b71c0655f418c7f4 (diff) | |
download | bcm5719-llvm-9a58919c8e24503f047068a8bf521d307c817f9d.tar.gz bcm5719-llvm-9a58919c8e24503f047068a8bf521d307c817f9d.zip |
Enumerate .code16/32/64 instead of checking .code prefix. This
unbreaks some ARM tests.
llvm-svn: 124608
-rw-r--r-- | llvm/lib/MC/MCParser/AsmParser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 7a6587811cd..61ceee45f5f 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/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. |