OSDN Git Service

[llvm-readobj] - Refactor ELFDumper<ELFT>::getStaticSymbolName.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 6 Jul 2020 10:45:49 +0000 (13:45 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 7 Jul 2020 10:33:47 +0000 (13:33 +0300)
commit2953ac0975bc7e5dbe61fbd6538f02487efa62d2
tree110193c1f3aba9dc6d4137b8ce4a34ff6d16865f
parent2d9bd448c9f051de088b53592f89871e9b390fba
[llvm-readobj] - Refactor ELFDumper<ELFT>::getStaticSymbolName.

This is a followup for D83129.
It is possible to make `getStaticSymbolName` report warnings inside
and return the "<?>" on a error. This allows to encapsulate errors handling
and slightly simplifies the logic in callers code.

Differential revision: https://reviews.llvm.org/D83208
llvm/test/tools/llvm-readobj/ELF/addrsig.test
llvm/tools/llvm-readobj/ELFDumper.cpp