This is an archive of the discontinued LLVM Phabricator instance.

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

Authored by grimar on May 28 2020, 7:56 AM.

Details

Summary

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 usings to make the code a bit shorter.

Diff Detail

Event Timeline

grimar created this revision.May 28 2020, 7:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 28 2020, 7:56 AM
Herald added a subscriber: rupprecht. · View Herald Transcript
This revision is now accepted and ready to land.May 29 2020, 6:14 AM
This revision was automatically updated to reflect the committed changes.