diff options
author | Fangrui Song <maskray@google.com> | 2020-03-22 23:03:09 -0700 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2020-03-26 08:32:29 -0700 |
commit | 3eef47407b7247513f125833abc688cea3a1d218 (patch) | |
tree | b2ade11d782ef6aaf5112ad2c073016db82d80ab /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 3ff3c6986b1aea1ca0630bf844f8567780eaec90 (diff) | |
download | llvm-3eef47407b7247513f125833abc688cea3a1d218.zip llvm-3eef47407b7247513f125833abc688cea3a1d218.tar.gz llvm-3eef47407b7247513f125833abc688cea3a1d218.tar.bz2 |
[PPCInstPrinter] Change printBranchOperand(calltarget) to print the target address in hexadecimal form
```
// llvm-objdump -d output (before)
0: bl .-4
4: bl .+0
8: bl .+4
// llvm-objdump -d output (after) ; GNU objdump -d
0: bl 0xfffffffc / bl 0xfffffffffffffffc
4: bl 0x4
8: bl 0xc
```
Many Operand's are not annotated as OPERAND_PCREL.
They are not affected (e.g. `b .+67108860`). I plan to fix them in future patches.
Modified test/tools/llvm-objdump/ELF/PowerPC/branch-offset.s to test
address space wraparound for powerpc32 and powerpc64.
Reviewed By: sfertile, jhenderson
Differential Revision: https://reviews.llvm.org/D76591
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions