[lld] [llvm] [AArch64][llvm-objdump] Fix arm64_32 symbolization (PR #171164)

David Tellenbach via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 16 04:21:28 PST 2025


================
@@ -123,8 +129,15 @@ bool AArch64ExternalSymbolizer::tryAddingSymbolicOperand(
         const MCRegisterInfo &MCRI = *Ctx.getRegisterInfo();
         // otool expects the fully encoded ADD/LDR instruction to be passed in
         // as the value here, so reconstruct it:
-        unsigned EncodedInst =
-          MI.getOpcode() == AArch64::ADDXri ? 0x91000000: 0xF9400000;
+        unsigned EncodedInst;
----------------
dtellenbach wrote:

This could be a small switch.

https://github.com/llvm/llvm-project/pull/171164


More information about the llvm-commits mailing list