[all-commits] [llvm/llvm-project] 6ae5b9: [llvm-readobj] - Make decode_relrs() don't return ...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Aug 5 07:06:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6ae5b9e40587f5586e2970ca717797b68c34758d
      https://github.com/llvm/llvm-project/commit/6ae5b9e40587f5586e2970ca717797b68c34758d
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M llvm/include/llvm/Object/ELF.h
    M llvm/lib/Object/ELF.cpp
    M llvm/tools/llvm-readobj/ELFDumper.cpp

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

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.

Differential revision: https://reviews.llvm.org/D85302




More information about the All-commits mailing list