It fixes/improves the following:
- Some code was duplicated.
- A "The .MIPS.abiflags section has a wrong size" error was not reported as a warning, but was printed to stdout for the LLVM style. Also, it was reported as an error for the GNU style. This patch changes the behavior to be consistent and to report warnings.
- unwrapOrError() was used before, now a warning is reported instead.
The implicit-check-not on the llvm-readobj case implies there is other output expected? What is this other output, and should we actually be checking it?