[PATCH] D95511: [llvm-readelf] Support dumping the BB address map section with --bb-addr-map.
Mircea Trofin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 3 22:42:21 PST 2021
mtrofin added a comment.
In D95511#2541073 <https://reviews.llvm.org/D95511#2541073>, @rahmanl wrote:
> 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).
I meant the textual output. It's very close to json - the benefit of it actually being json is that one could script from llvm-readobj output.
The other question - looking at the textual output, could it go the next step and produce the association bbaddress - name? My thinking is that the user of the output would find that more valuable (quick scripting, for instance)
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