This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper.
ClosedPublic

Authored by grimar on Aug 21 2019, 3:11 AM.

Details

Summary

We do not need it, std::error_code is used mostly for COFF and
this patch rewrites the calls to use a different overload.

Having reportError(std::error_code EC, ... is excessive by itself,
because API that use error codes actually needs refactoring to
use Error/Expected<> instead.

Diff Detail

Event Timeline

grimar created this revision.Aug 21 2019, 3:11 AM
rupprecht accepted this revision.Aug 21 2019, 10:56 AM
This revision is now accepted and ready to land.Aug 21 2019, 10:56 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2019, 2:01 AM