projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1531511
)
Enumerate .code16/32/64 instead of checking .code prefix. This
author
Roman Divacky
<rdivacky@freebsd.org>
Mon, 31 Jan 2011 21:19:43 +0000
(21:19 +0000)
committer
Roman Divacky
<rdivacky@freebsd.org>
Mon, 31 Jan 2011 21:19:43 +0000
(21:19 +0000)
unbreaks some ARM tests.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124608
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCParser/AsmParser.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCParser/AsmParser.cpp
b/lib/MC/MCParser/AsmParser.cpp
index 7a6587811cdd0554bec0841b7c94b7fa78f1b769..61ceee45f5f3f8504737ac4b9c045a908f8b9293 100644
(file)
--- 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.