This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Don't stop dumping when the name of a relocation section can't be read.
ClosedPublic

Authored by grimar on Jul 23 2020, 7:26 AM.

Details

Summary

This removes undesired unwrapOrError calls from printRelocations() methods.

Diff Detail

Event Timeline

grimar created this revision.Jul 23 2020, 7:26 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson added inline comments.Jul 23 2020, 7:47 AM
llvm/tools/llvm-readobj/ELFDumper.cpp
6137–6138

This code looks like something that could be shared both with the GNU style and possibly even more widely with other places getting section names.

grimar planned changes to this revision.Jul 27 2020, 4:19 AM
grimar marked an inline comment as done.

I'll update it after we land D84526 and D83935.

grimar updated this revision to Diff 282569.EditedAug 3 2020, 3:47 AM
grimar marked an inline comment as done.
  • Addressed review comments (introduced getPrintableSectionName).
llvm/tools/llvm-readobj/ELFDumper.cpp
6137–6138

Done.

jhenderson accepted this revision.Aug 3 2020, 3:51 AM

LGTM, thanks!

This revision is now accepted and ready to land.Aug 3 2020, 3:51 AM