[PATCH] D80726: [llvm-readobj] - Cleanup the DwarfCFIEH::PrinterContext class. NFCI.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 28 08:08:06 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: rupprecht.
Herald added a project: LLVM.

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.


https://reviews.llvm.org/D80726

Files:
  llvm/tools/llvm-readobj/DwarfCFIEHPrinter.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80726.266885.patch
Type: text/x-patch
Size: 8668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200528/0143bad3/attachment.bin>


More information about the llvm-commits mailing list