OSDN Git Service

[llvm-readobj] - Allow dumping partially corrupted SHT_LLVM_CALL_GRAPH_PROFILE sections.
authorGeorgii Rymar <grimar@accesssoftek.com>
Fri, 3 Jul 2020 13:23:46 +0000 (16:23 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 7 Jul 2020 10:30:12 +0000 (13:30 +0300)
commit2d9bd448c9f051de088b53592f89871e9b390fba
tree108967bfa09b740ca51df535f923fb23756fcf2d
parent5e8084beba20f27ce14536168087e5c6971e292d
[llvm-readobj] - Allow dumping partially corrupted SHT_LLVM_CALL_GRAPH_PROFILE sections.

The code we have currently reports an error if something is not right with the
profile section. Instead we can report a warning and continue dumping when it is possible.
This patch does it.

Differential revision: https://reviews.llvm.org/D83129
llvm/test/tools/llvm-readobj/ELF/call-graph-profile.test
llvm/tools/llvm-readobj/ELFDumper.cpp