diff options
author | Jim Grosbach <grosbach@apple.com> | 2012-10-30 01:04:51 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2012-10-30 01:04:51 +0000 |
commit | 4739f2eb190176baccd34cf498027a4fb76dd384 (patch) | |
tree | f73705367b5eaae746749f78f059c9aef31a8143 /llvm/lib/Target/ARM/ARMInstrThumb.td | |
parent | a81175371628fd34b10bfcc03c1c7dbe9a62621a (diff) | |
download | bcm5719-llvm-4739f2eb190176baccd34cf498027a4fb76dd384.tar.gz bcm5719-llvm-4739f2eb190176baccd34cf498027a4fb76dd384.zip |
ARM: Better disassembly for pc-relative LDR.
When the operand is a plain immediate rather than a label, print it
as [pc, #imm] like we do for the Thumb2 wide encoding variant.
rdar://12154503
llvm-svn: 166991
Diffstat (limited to 'llvm/lib/Target/ARM/ARMInstrThumb.td')
-rw-r--r-- | llvm/lib/Target/ARM/ARMInstrThumb.td | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMInstrThumb.td b/llvm/lib/Target/ARM/ARMInstrThumb.td index e171f8b0929..a5c0bc6740e 100644 --- a/llvm/lib/Target/ARM/ARMInstrThumb.td +++ b/llvm/lib/Target/ARM/ARMInstrThumb.td @@ -223,6 +223,7 @@ def t_addrmode_sp : Operand<i32>, def t_addrmode_pc : Operand<i32> { let EncoderMethod = "getAddrModePCOpValue"; let DecoderMethod = "DecodeThumbAddrModePC"; + let PrintMethod = "printThumbLdrLabelOperand"; } //===----------------------------------------------------------------------===// |