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. llvm-svn: 119937
This commit is contained in:
parent
3acd02706a
commit
219dabdf68
|
@ -857,8 +857,11 @@ bool ARMAsmParser::ParseInstruction(StringRef Name, SMLoc NameLoc,
|
||||||
}
|
}
|
||||||
|
|
||||||
Operands.push_back(ARMOperand::CreateToken(Head, 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.
|
// Add the remaining tokens in the mnemonic.
|
||||||
while (Next != StringRef::npos) {
|
while (Next != StringRef::npos) {
|
||||||
|
|
Loading…
Reference in New Issue