[all-commits] [llvm/llvm-project] 981997: [llvm-readobj] - Cleanup the DwarfCFIEH::PrinterCo...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Fri May 29 06:45:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 9819976032c5af8d9109f2077e637c8303e4d6df
https://github.com/llvm/llvm-project/commit/9819976032c5af8d9109f2077e637c8303e4d6df
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-05-29 (Fri, 29 May 2020)
Changed paths:
M llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
Log Message:
-----------
[llvm-readobj] - Cleanup the DwarfCFIEH::PrinterContext class. NFCI.
It would be nice to switch to `reportUniqueWarnings` from
`reportError` in this class, but first of all it needs a cleanup.
This patch:
1) Eliminates autos.
2) Removes code duplication.
3) Changes how the code works with `Expected<>`.
4) Introduces 2 new `using`s to make the code a bit shorter.
Differential revision: https://reviews.llvm.org/D80726
More information about the All-commits
mailing list