This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Refactor ELFDumper<ELFT>::getStaticSymbolName.
ClosedPublic

Authored by grimar on Jul 6 2020, 3:47 AM.

Details

Summary

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

Diff Detail

Event Timeline

grimar created this revision.Jul 6 2020, 3:47 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson accepted this revision.Jul 7 2020, 12:13 AM

LGTM.

llvm/tools/llvm-readobj/ELFDumper.cpp
1135

Either simply Warn or ReportWarning, I think.

This revision is now accepted and ready to land.Jul 7 2020, 12:13 AM
This revision was automatically updated to reflect the committed changes.
grimar marked an inline comment as done.