[PATCH] D95511: [llvm-readelf] Support dumping the BB address map section with --bb-addr-map.

Rahman Lavaee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 3 22:22:26 PST 2021


rahmanl added a comment.

In D95511#2541040 <https://reviews.llvm.org/D95511#2541040>, @mtrofin wrote:

> Can the output be consumed programmatically?  (i.e. is it for example valid yaml or json)

Yes, but it's not yaml or json. The output is `std::vector<Elf_BBAddrMap>` and it is accessible via the library call: `ELFFile::decodeBBAddrMap(Elf_Shdr&)` (However, the user needs to find the BB address map section).


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D95511/new/

https://reviews.llvm.org/D95511



More information about the llvm-commits mailing list