diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-15 01:29:07 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-15 01:29:07 +0000 |
commit | 44bec52b1b7e9a3ac1efbae90db240b8c1ca2ad4 (patch) | |
tree | 6a1a76ed9f6ef5f903fe0b8571bb7cfe3ab69b1b /lib/Target/ARM/ARMAsmPrinter.cpp | |
parent | 709fd414e2e5c3f3f282864a16688409ea152706 (diff) |
Add PredicateOperand to all ARM instructions that have the condition field.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMAsmPrinter.cpp')
-rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 0f0a5419dd..c57fbbc019 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -614,8 +614,9 @@ void ARMAsmPrinter::printThumbAddrModeSPOperand(const MachineInstr *MI,int Op) { } void ARMAsmPrinter::printPredicateOperand(const MachineInstr *MI, int opNum) { - int CC = (int)MI->getOperand(opNum).getImmedValue(); - O << ARMCondCodeToString((ARMCC::CondCodes)CC); + ARMCC::CondCodes CC = (ARMCC::CondCodes)MI->getOperand(opNum).getImmedValue(); + if (CC != ARMCC::AL) + O << ARMCondCodeToString(CC); } void ARMAsmPrinter::printPCLabel(const MachineInstr *MI, int opNum) { |