This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Remove unwrapOrError(ErrorOr<T> EO) helper.
ClosedPublic

Authored by grimar on Aug 8 2019, 6:57 AM.

Details

Summary

It is outdated. Using of Expected<> is preferred, also it does
not provide a way to report a file name.

I updated the code to use the modern version of unwrapOrError instead.

Diff Detail

Repository
rL LLVM

Event Timeline

grimar created this revision.Aug 8 2019, 6:57 AM
MaskRay accepted this revision.Aug 8 2019, 6:59 AM
This revision is now accepted and ready to land.Aug 8 2019, 6:59 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2019, 1:31 AM