llvm-project/llvm/tools/llvm-objdump
Georgii Rymar 407d420029 [lib/Object] - Make ELFObjectFile::getSymbol() return Expected<>.
This was requested in comments for D93209:
https://reviews.llvm.org/D93209#inline-871192

D93209 fixes an issue with `ELFFile<ELFT>::getEntry`,
after what `getSymbol` starts calling `report_fatal_error` for previously
missed invalid cases.

This patch makes it return `Expected<>` and updates callers.
For few of them I had to add new `report_fatal_error` calls. But I see no
way to avoid it currently. The change would affects too many places, e.g:
`getSymbolBinding` and other methods are used from `ELFSymbolRef`
which is used in too many places across LLVM.

Differential revision: https://reviews.llvm.org/D93297
2020-12-16 13:14:23 +03:00
..
CMakeLists.txt [llvm-objdump][XCOFF][AIX] Implement -r option 2020-03-27 16:05:42 +00:00
COFFDump.cpp Re-land "Migrate the rest of COFFObjectFile to Error" 2020-06-11 14:46:16 -07:00
COFFDump.h [llvm-objdump][COFF][NFC] Split format-specific interfaces; add namespace 2020-04-02 18:42:13 -04:00
ELFDump.cpp [lib/Object] - Make ELFObjectFile::getSymbol() return Expected<>. 2020-12-16 13:14:23 +03:00
ELFDump.h [llvm-objdump][ELF][NFC] Create ELFDump.h 2020-04-23 21:24:37 -04:00
MachODump.cpp [llvm-objdump] Use "--" for long options in --help text 2020-12-14 13:11:29 +00:00
MachODump.h [llvm-objdump][NFC] MachODump.cpp interface cleanup 2020-04-09 15:35:33 -04:00
WasmDump.cpp [llvm-objdump][Wasm][NFC] Create WasmDump.h 2020-04-14 18:26:24 -04:00
WasmDump.h [llvm-objdump][Wasm][NFC] Create WasmDump.h 2020-04-14 18:26:24 -04:00
XCOFFDump.cpp [llvm-objdump][XCOFF] Print more symbol info in relocation 2020-04-22 13:52:08 +00:00
XCOFFDump.h [llvm-objdump][XCOFF] Print more symbol info in relocation 2020-04-22 13:52:08 +00:00
llvm-objdump.cpp [lib/Object] - Make ELFObjectFile::getSymbol() return Expected<>. 2020-12-16 13:14:23 +03:00
llvm-objdump.h [llvm-objdump] Implement --prefix option 2020-10-16 17:50:42 +01:00