[llvm-readobj] - Refine error reporting in MipsGOTParser<ELFT> helper.
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 7 Jul 2020 15:13:26 +0000 (18:13 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 8 Jul 2020 09:05:52 +0000 (12:05 +0300)
commit1f84ace3c7266564801d79185ebb05eb451205f1
treec122f5b21820399061ad378aed95cf71e0f565b4
parent9e66e9c30a19dc5923c85d3a3a4b757935299fba
[llvm-readobj] - Refine error reporting in MipsGOTParser<ELFT> helper.

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.

Differential revision: https://reviews.llvm.org/D83314
llvm/test/tools/llvm-readobj/ELF/mips-got.test
llvm/test/tools/llvm-readobj/ELF/mips-plt.test
llvm/tools/llvm-readobj/ELFDumper.cpp