[all-commits] [llvm/llvm-project] 8f576a: [llvm-readobj] - Simplify findSectionByName(). NFCI.

Georgii Rymar via All-commits all-commits at lists.llvm.org
Tue Aug 4 01:23:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f576a75661668594ff0ac795e31cdb8df90780b
      https://github.com/llvm/llvm-project/commit/8f576a75661668594ff0ac795e31cdb8df90780b
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-04 (Tue, 04 Aug 2020)

  Changed paths:
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list