This is an archive of the discontinued LLVM Phabricator instance.

[llvm-readobj] - Simplify findSectionByName(). NFCI.
ClosedPublic

Authored by grimar on Aug 3 2020, 7:28 AM.

Details

Summary

It turns out that findSectionByName can return
const Elf_Shdr * instead of Expected<>, because its
code never returns an error currently (it reports warnings instead).

Diff Detail

Event Timeline

grimar created this revision.Aug 3 2020, 7:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 3 2020, 7:28 AM
Herald added a subscriber: rupprecht. · View Herald Transcript
grimar requested review of this revision.Aug 3 2020, 7:28 AM
MaskRay accepted this revision.Aug 3 2020, 9:43 AM

LGTM.

This revision is now accepted and ready to land.Aug 3 2020, 9:43 AM
jhenderson accepted this revision.Aug 4 2020, 12:21 AM

Errrmmm... yeah, not sure how we missed that before! LGTM.

This revision was automatically updated to reflect the committed changes.