From: Devang Patel Date: Sat, 7 Jan 2012 01:22:23 +0000 (+0000) Subject: Eliminate an error check that may not work with all asm syntax variants. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d803f45e416482f984dbe4908491c4bda33759f7;p=platform%2Fupstream%2Fllvm.git Eliminate an error check that may not work with all asm syntax variants. llvm-svn: 147708 --- diff --git a/llvm/utils/TableGen/AsmMatcherEmitter.cpp b/llvm/utils/TableGen/AsmMatcherEmitter.cpp index d2f2748..3576cc9 100644 --- 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() + "'!");