This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Refine error reporting in MipsGOTParser<ELFT> helper.
ClosedPublic

Authored by grimar on Jul 7 2020, 8:28 AM.

Details

Summary

This is a follow-up for D83225. This does the following:

  1. Adds missing tests for existent errors.
  2. Stops using unwrapOrError to propagate errors to caller. (I am trying to get rid of all unwrapOrErr calls in the llvm-readelf code).
  3. Improves error messages reported slightly.

Diff Detail

Event Timeline

grimar created this revision.Jul 7 2020, 8:28 AM
jhenderson accepted this revision.Jul 8 2020, 12:00 AM

LGTM, with one nit.

llvm/test/tools/llvm-readobj/ELF/mips-plt.test
127

"to dump the PLTGOT properly"

(GOT stands for Global Offset Table, so no need to say "table" again).

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