[PATCH] D119050: [llvm-objdump/mac] Add new function starts print mode

Keith Smiley via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 4 18:30:54 PST 2022


keith created this revision.
Herald added a subscriber: rupprecht.
Herald added a reviewer: jhenderson.
Herald added a reviewer: MaskRay.
keith requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This updates the `--function-starts` argument to now accept 3 different
modes, `addrs` for just printing the addresses of the function starts
(previous behavior), `names` for just printing the names of the function
starts, and `both` to print them both side by side.

In general if you're debugging function starts issues it's useful to see
the symbol name alongside the address. This also mirrors Apple's
`dyldinfo -function_starts` command which prints both.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D119050

Files:
  llvm/test/tools/llvm-objdump/MachO/function-starts.test
  llvm/tools/llvm-objdump/MachODump.cpp
  llvm/tools/llvm-objdump/MachODump.h
  llvm/tools/llvm-objdump/ObjdumpOpts.td
  llvm/tools/llvm-objdump/llvm-objdump.cpp
  llvm/tools/llvm-objdump/llvm-objdump.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119050.406141.patch
Type: text/x-patch
Size: 8820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220205/fd5caae6/attachment.bin>


More information about the llvm-commits mailing list