[PATCH] D74507: [llvm-objdump] Print method name from debug info in disassembly output.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 12 14:05:51 PST 2020


rupprecht created this revision.
rupprecht added reviewers: dblaikie, MaskRay, jhenderson.
Herald added subscribers: llvm-commits, kerbowa, aprantl, nhaehnle, jvesely.
Herald added a project: LLVM.

GNU objdump prints the method name in disassembly output, and upon further investigation this seems to come from debug info, not the symbol table.

Some additional refactoring is necessary to make this work even when the line number is 0/the filename is unknown. The added test case includes a note for this scenario.

See http://llvm.org/PR41341 for more info.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74507

Files:
  llvm/test/tools/llvm-objdump/AMDGPU/source-lines.ll
  llvm/test/tools/llvm-objdump/Hexagon/source-interleave-hexagon.ll
  llvm/test/tools/llvm-objdump/X86/source-interleave-function-from-debug.test
  llvm/test/tools/llvm-objdump/X86/source-interleave-x86_64.test
  llvm/test/tools/llvm-objdump/embedded-source.test
  llvm/tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74507.244274.patch
Type: text/x-patch
Size: 7212 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200212/2b830a17/attachment.bin>


More information about the llvm-commits mailing list