[PATCH] D78776: [llvm-objdump] Print target address with evaluateMemoryOperandAddress()

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 23 17:57:40 PDT 2020


MaskRay created this revision.
MaskRay added reviewers: craig.topper, jhenderson, seiya, skan.
Herald added subscribers: llvm-commits, rupprecht, hiraditya.
Herald added a project: LLVM.

D63746 <https://reviews.llvm.org/D63746> added `MCInstrAnalysis::evaluateMemoryOperandAddress()`. This patch
leverages the feature to print the target addresses for evaluable instructions.

  -400a: movl 4080(%rip), %eax
  +400a: movl 4080(%rip), %eax  # 5000 <data1>

This patch also deletes `MIA->isCall(Inst) || MIA->isUnconditionalBranch(Inst) || MIA->isConditionalBranch(Inst)`
which is used to guard `MCInstrAnalysis::evaluateBranch()`


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D78776

Files:
  llvm/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp
  llvm/test/MC/X86/tlsdesc-64.s
  llvm/test/tools/llvm-objdump/X86/elf-disassemble-symbol-references.yaml
  llvm/tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78776.259763.patch
Type: text/x-patch
Size: 4604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200424/68e9360e/attachment.bin>


More information about the llvm-commits mailing list