[llvm-readobj] - Simplify findSectionByName(). NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Mon, 3 Aug 2020 14:21:58 +0000 (17:21 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Tue, 4 Aug 2020 08:13:02 +0000 (11:13 +0300)
commit8f576a75661668594ff0ac795e31cdb8df90780b
treeb284fa0199c6efeb4f1198bdfa6990359ac03a35
parent1ea84653378132091b5b6d31d4f6bf3ec7da7b56
[llvm-readobj] - Simplify findSectionByName(). NFCI.

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

Differential revision: https://reviews.llvm.org/D85135
llvm/tools/llvm-readobj/ELFDumper.cpp