diff options
author | Amaury de la Vieuville <amaury.dlv@gmail.com> | 2013-06-26 13:39:07 +0000 |
---|---|---|
committer | Amaury de la Vieuville <amaury.dlv@gmail.com> | 2013-06-26 13:39:07 +0000 |
commit | 6e0857e0b6b241e8b698417659a5821f15290a63 (patch) | |
tree | 884109aa5794e84ec0adde75c83d94b91790a442 /lib/Target | |
parent | eb4a55c949cc8ee32fdff3bc460f0c2788e247fd (diff) | |
download | external_llvm-6e0857e0b6b241e8b698417659a5821f15290a63.zip external_llvm-6e0857e0b6b241e8b698417659a5821f15290a63.tar.gz external_llvm-6e0857e0b6b241e8b698417659a5821f15290a63.tar.bz2 |
ARM: operands should be explicit when disassembled
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp index 8734e44..1797c6c 100644 --- a/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp +++ b/lib/Target/ARM/InstPrinter/ARMInstPrinter.cpp @@ -1176,19 +1176,14 @@ void ARMInstPrinter::printT2AddrModeImm8s4OffsetOperand(const MCInst *MI, assert(((OffImm & 0x3) == 0) && "Not a valid immediate!"); - // Don't print +0. - if (OffImm != 0) - O << ", "; - if (OffImm != 0 && UseMarkup) - O << "<imm:"; + O << ", " << markup("<imm:"); if (OffImm == INT32_MIN) O << "#-0"; else if (OffImm < 0) O << "#-" << -OffImm; - else if (OffImm > 0) + else O << "#" << OffImm; - if (OffImm != 0 && UseMarkup) - O << ">"; + O << markup(">"); } void ARMInstPrinter::printT2AddrModeSoRegOperand(const MCInst *MI, |