mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Eliminate an error check that may not work with all asm syntax variants.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147708 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ee98aa8743
commit
b78307fc58
@ -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() + "'!");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user