This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj/elf] - Remove `unwrapOrError` calls from DumpStyle<ELFT>::printRelocationsHelper.
ClosedPublic

Authored by grimar on Aug 5 2020, 7:02 AM.

Details

Summary

It removes all unwrapOrError calls except the first one, which
is is bit different and can be removed separately.

Diff Detail

Event Timeline

grimar created this revision.Aug 5 2020, 7:02 AM
Herald added a project: Restricted Project. · View Herald Transcript
jhenderson added inline comments.Aug 11 2020, 1:38 AM
llvm/test/tools/llvm-readobj/ELF/packed-relocs.test
60
123

Ditto.

llvm/test/tools/llvm-readobj/ELF/relocations.test
202
233
llvm/test/tools/llvm-readobj/ELF/relr-relocs.test
39

Could you use double-dashes here and below for the options, whilst modifying these lines, please?

158
171

Same suggestion as elsewhere.

174
grimar updated this revision to Diff 284689.Aug 11 2020, 6:34 AM
grimar marked 6 inline comments as done.
  • Addressed review comments.
grimar marked 2 inline comments as done.Aug 11 2020, 6:34 AM
This revision is now accepted and ready to land.Aug 11 2020, 6:36 AM