[PATCH] D72973: using symbol index+symbol name + storage mapping class as label for llvm-objdump -D

Digger via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 17 19:16:42 PST 2020


DiggerLin created this revision.
DiggerLin added reviewers: hubert.reinterpretcast, jasonliu, sfertile, daltenty.
Herald added subscribers: llvm-commits, kerbowa, jsji, rupprecht, arphaman, hiraditya, nhaehnle, jvesely, nemanjai, arsenm.
Herald added a reviewer: jhenderson.
Herald added a project: LLVM.

for the llvm-objdump -D , it dissemble the data section out, it will print the symbol name as Label for the
specific address (when a symbol address is equal to the virtual address of the data).

but in the xcoff, when symbol name is same , if the storage mapping class is different , it will looks as different symbol, we need to print out the QualName of symbol as Label of the csect when "llvm-objdump -D " dissemble the data section

and we use symbol index as part of label too in this patch.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D72973

Files:
  llvm/lib/BinaryFormat/XCOFF.cpp
  llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
  llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-const.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
  llvm/test/CodeGen/PowerPC/aix-xcoff-textdisassembly.ll
  llvm/test/tools/llvm-objdump/xcoff-disassemble-all.test
  llvm/tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72973.238938.patch
Type: text/x-patch
Size: 15815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200118/c1d08e7e/attachment.bin>


More information about the llvm-commits mailing list