[PATCH] D85135: [llvm-readobj] - Simplify findSectionByName(). NFCI.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 3 07:28:16 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: rupprecht.
Herald added a project: LLVM.
grimar requested review of this revision.

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).


https://reviews.llvm.org/D85135

Files:
  llvm/tools/llvm-readobj/ELFDumper.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85135.282617.patch
Type: text/x-patch
Size: 3975 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200803/ef3aff60/attachment.bin>


More information about the llvm-commits mailing list