[PATCH] D102900: [llvm-readobj] Print function names with `--bb-addr-map`.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 21 19:31:01 PDT 2021


rahmanl created this revision.
rahmanl added reviewers: tmsriram, jhenderson.
Herald added subscribers: rupprecht, emaste.
rahmanl updated this revision to Diff 347168.
rahmanl added a comment.
rahmanl edited the summary of this revision.
rahmanl published this revision for review.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.

Rename and refactoring.


This patch factors out and reuses existing code in printFunctionStackSize to print function names for BB address map entries.

This makes the running time quadratic in terms of the number of symbols because of the linear iteration in getFunctionSymbolIndex.  The running time for the clang binary is about 10 minutes. This can be improved if we use binary search to find the address instead of linear iteration.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102900

Files:
  llvm/test/tools/llvm-readobj/ELF/bb-addr-map.test
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102900.347168.patch
Type: text/x-patch
Size: 7086 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210522/9eca2906/attachment.bin>


More information about the llvm-commits mailing list