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:
9f08f60
)
Error on all .code* directives instead of just .code16 as they
author
Roman Divacky
<rdivacky@freebsd.org>
Mon, 31 Jan 2011 20:56:49 +0000
(20:56 +0000)
committer
Roman Divacky
<rdivacky@freebsd.org>
Mon, 31 Jan 2011 20:56:49 +0000
(20:56 +0000)
all lead to a silent miscompilation of code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124603
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 b66eeb9cf01117043bcc68279642b92b13556242..7a6587811cdd0554bec0841b7c94b7fa78f1b769 100644
(file)
--- a/
lib/MC/MCParser/AsmParser.cpp
+++ b/
lib/MC/MCParser/AsmParser.cpp
@@
-1065,8
+1065,8
@@
bool AsmParser::ParseStatement() {
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 =