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.
Paths
| Differential D85302
[llvm-readobj] - Make decode_relrs() don't return Expected<>. NFCI. ClosedPublic Authored by grimar on Aug 5 2020, 6:59 AM.
Details Summary 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
Diff Detail Event TimelineThis revision is now accepted and ready to land.Aug 5 2020, 7:03 AM Closed by commit rG6ae5b9e40587: [llvm-readobj] - Make decode_relrs() don't return Expected<>. NFCI. (authored by grimar). · Explain WhyAug 5 2020, 7:06 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 283221 llvm/include/llvm/Object/ELF.h
llvm/lib/Object/ELF.cpp
llvm/tools/llvm-readobj/ELFDumper.cpp
|