[AArch64InstPrinter] Change printAlignedLabel to print the target address in hexadeci...
authorFangrui Song <maskray@google.com>
Fri, 10 Apr 2020 01:46:35 +0000 (18:46 -0700)
committerFangrui Song <maskray@google.com>
Fri, 10 Apr 2020 16:21:09 +0000 (09:21 -0700)
commit7f36cb1f1a4ed93cfb19bf2183d150571313ec98
tree07e6586fab05a6f05684b6cfacea60d7dc29de3f
parent1824ae0f423b610179dadbc7ecc63de5cbbc812d
[AArch64InstPrinter] Change printAlignedLabel to print the target address in hexadecimal form

Similar to D76580 (x86) and D76591 (PPC).

```
// llvm-objdump -d output (before)
10000: 08 00 00 94                   bl      #32
10004: 08 00 00 94                   bl      #32

// llvm-objdump -d output (after)
10000: 08 00 00 94                   bl      0x10020
10004: 08 00 00 94                   bl      0x10024

// GNU objdump -d. The lack of 0x is not ideal due to ambiguity.
10000:       94000008        bl      10020 <bar+0x18>
10004:       94000008        bl      10024 <bar+0x1c>
```

The new output makes it easier to find the jump target.

Differential Revision: https://reviews.llvm.org/D77853
30 files changed:
lld/test/COFF/arm64-delayimport.yaml
lld/test/COFF/arm64-import2.test
lld/test/COFF/arm64-relocs-imports.test
lld/test/COFF/arm64-thunks.s
lld/test/ELF/aarch64-call26-thunk.s
lld/test/ELF/aarch64-condb-reloc.s
lld/test/ELF/aarch64-cortex-a53-843419-address.s
lld/test/ELF/aarch64-cortex-a53-843419-large.s
lld/test/ELF/aarch64-cortex-a53-843419-large2.s
lld/test/ELF/aarch64-cortex-a53-843419-recognize.s
lld/test/ELF/aarch64-cortex-a53-843419-thunk.s
lld/test/ELF/aarch64-feature-bti.s
lld/test/ELF/aarch64-feature-btipac.s
lld/test/ELF/aarch64-feature-pac.s
lld/test/ELF/aarch64-gnu-ifunc-plt.s
lld/test/ELF/aarch64-gnu-ifunc.s
lld/test/ELF/aarch64-jump26-thunk.s
lld/test/ELF/aarch64-plt.s
lld/test/ELF/aarch64-relocs.s
lld/test/ELF/aarch64-thunk-pi.s
lld/test/ELF/aarch64-thunk-script.s
lld/test/ELF/aarch64-thunk-section-location.s
lld/test/ELF/aarch64-tstbr14-reloc.s
lld/test/ELF/aarch64-undefined-weak.s
lld/test/ELF/pr34660.s
lld/test/ELF/relocation-b-aarch64.test
llvm/lib/Target/AArch64/MCTargetDesc/AArch64InstPrinter.cpp
llvm/test/CodeGen/AArch64/callbr-asm-obj-file.ll
llvm/test/CodeGen/AArch64/inlineasm-ldr-pseudo.ll
llvm/test/tools/llvm-objdump/MachO/AArch64/pc-rel-targets.test