This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Make decode_relrs() don't return Expected<>. NFCI.
ClosedPublic

Authored by grimar on Aug 5 2020, 6:59 AM.

Details

Summary

The decode_relrs helper is declared as:

Expected<std::vector<Elf_Rel>> decode_relrs(Elf_Relr_Range relrs) const;

it never returns an error though and hence can be simplified to return
a vector.

Diff Detail

Event Timeline

grimar created this revision.Aug 5 2020, 6:59 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 5 2020, 6:59 AM
grimar requested review of this revision.Aug 5 2020, 6:59 AM
This revision is now accepted and ready to land.Aug 5 2020, 7:03 AM