projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5adedf5
)
Eliminate an error check that may not work with all asm syntax variants.
author
Devang Patel
<dpatel@apple.com>
Sat, 7 Jan 2012 01:22:23 +0000
(
01:22
+0000)
committer
Devang Patel
<dpatel@apple.com>
Sat, 7 Jan 2012 01:22:23 +0000
(
01:22
+0000)
llvm-svn: 147708
llvm/utils/TableGen/AsmMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index
d2f2748
..
3576cc9
100644
(file)
--- a/
llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/
llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@
-740,7
+740,8
@@
void MatchableInfo::TokenizeAsmString(const AsmMatcherInfo &Info) {
throw TGError(TheDef->getLoc(),
"Instruction '" + TheDef->getName() + "' has no tokens");
Mnemonic = AsmOperands[0].Token;
- if (Mnemonic[0] == '$' || getSingletonRegisterForAsmOperand(0, Info))
+ // FIXME : Check and raise an error if it is register.
+ if (Mnemonic[0] == '$')
throw TGError(TheDef->getLoc(),
"Invalid instruction mnemonic '" + Mnemonic.str() + "'!");