[all-commits] [llvm/llvm-project] 3c9c9c: [llvm-objdump] Print target address with evaluateM...

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Apr 27 09:47:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3c9c9c1768fdca3fb06c96cc982d9fd240689a1b
      https://github.com/llvm/llvm-project/commit/3c9c9c1768fdca3fb06c96cc982d9fd240689a1b
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-27 (Mon, 27 Apr 2020)

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

  Log Message:
  -----------
  [llvm-objdump] Print target address with evaluateMemoryOperandAddress()

D63847 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()`

Reviewed By: jhenderson, skan

Differential Revision: https://reviews.llvm.org/D78776




More information about the All-commits mailing list