Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-readelf/readobj] - Refine the error reporting in printMipsABIFl…
…ags() methods. It fixes/improves the following: 1) Some code was duplicated. 2) 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. 3) `unwrapOrError()` was used before, now a warning is reported instead. Differential revision: https://reviews.llvm.org/D84033
- Loading branch information
Georgii Rymar
committed
Jul 20, 2020
1 parent
b6073ee
commit 256aea8
Showing
2 changed files
with
86 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters