[llvm-readobj] Print function names with `--bb-addr-map`.
authorRahman Lavaee <rahmanl@google.com>
Wed, 26 May 2021 20:36:44 +0000 (13:36 -0700)
committerRahman Lavaee <rahmanl@google.com>
Wed, 2 Jun 2021 01:40:42 +0000 (18:40 -0700)
commit616ac1b961aa1ef9041d7e82b088ad2a9ad50014
treecbe03e71035c75dd61c4bd11cca415b19784b5d9
parent558e740170681c723ecb04156f7177d6dfebff13
[llvm-readobj] Print function names with `--bb-addr-map`.

This patch uses the `getSymbolIndexForFunctionAddress` helper function to print function names for BB address map entries.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D102900
llvm/test/tools/llvm-readobj/ELF/bb-addr-map.test
llvm/tools/llvm-readobj/ELFDumper.cpp