diff options
author | Alexis Engelke <engelke@in.tum.de> | 2025-06-25 17:09:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-25 17:09:25 +0200 |
commit | 36819eaed124d6a7339a151b6172cd543fe3579a (patch) | |
tree | 90c8f954d8019ca8ee0406ed8a4b430a364e9336 /llvm/tools/llvm-objdump/llvm-objdump.cpp | |
parent | 10edc3df99f798f29ae829af2bc9fc6103ceb403 (diff) | |
download | llvm-36819eaed124d6a7339a151b6172cd543fe3579a.zip llvm-36819eaed124d6a7339a151b6172cd543fe3579a.tar.gz llvm-36819eaed124d6a7339a151b6172cd543fe3579a.tar.bz2 |
[llvm-objdump] Support --symbolize-operand on AArch64
Similar to the existing implementations for X86 and PPC, support
symbolizing branch targets for AArch64. Do not omit the address for ADRP
as the target is typically not at an intended location.
Pull Request: https://github.com/llvm/llvm-project/pull/145009
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
-rw-r--r-- | llvm/tools/llvm-objdump/llvm-objdump.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 5ecb333..c5967cd 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -1495,8 +1495,9 @@ collectLocalBranchTargets(ArrayRef<uint8_t> Bytes, MCInstrAnalysis *MIA, // Supported by certain targets. const bool isPPC = STI->getTargetTriple().isPPC(); const bool isX86 = STI->getTargetTriple().isX86(); + const bool isAArch64 = STI->getTargetTriple().isAArch64(); const bool isBPF = STI->getTargetTriple().isBPF(); - if (!isPPC && !isX86 && !isBPF) + if (!isPPC && !isX86 && !isAArch64 && !isBPF) return; if (MIA) |