The "trap" instruction is one of this which doesn't have a condition code. Hack

the code to not add a "condition code" if it's trap.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119937 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2010-11-21 10:56:05 +00:00
parent 7d0affdf02
commit 9717fa9f29

View File

@ -857,8 +857,11 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
}
Operands.push_back(ARMOperand::CreateToken(Head, NameLoc));
// FIXME: Should only add this operand for predicated instructions
Operands.push_back(ARMOperand::CreateCondCode(ARMCC::CondCodes(CC), NameLoc));
if (Head != "trap")
// FIXME: Should only add this operand for predicated instructions
Operands.push_back(ARMOperand::CreateCondCode(ARMCC::CondCodes(CC),
NameLoc));
// Add the remaining tokens in the mnemonic.
while (Next != StringRef::npos) {