1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00
llvm-mirror/tools/llvm-readobj
Georgii Rymar 86793686ea [llvm-readobj] - Refactor the code that dumps relocations.
The current code has following issues:
1) It has a duplicated logic part.
2) This logic relies on unwrapOrError calls, but if we want to convert
   them to warnings, we will need to change all of them what is hard to do
   because of the duplication.

In this patch I've created a new method that returns Expected<> what allows
now to catch all errors in a single place and remove the code duplication.

Note: this change is itself a refactor NFC. It does not change the current logic
anyhow. It prepares the code for the follow-up(s).

Differential revision: https://reviews.llvm.org/D74545
2020-02-16 14:39:24 +03:00
..
ARMEHABIPrinter.h [llvm-readobj] - Remove 'error(Error EC)' helper. 2019-08-13 12:07:41 +00:00
ARMWinEHPrinter.cpp [llvm-readobj] Fix/improve printing WinEH unwind info for linked PE images 2019-12-11 10:20:34 +02:00
ARMWinEHPrinter.h [Object] Change getSectionName() to return Expected<StringRef> 2019-05-02 10:32:03 +00:00
CMakeLists.txt [Object][XCOFF] Add an XCOFF dumper for llvm-readobj. 2019-05-03 12:57:07 +00:00
COFFDumper.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
COFFImportDumper.cpp [Object] Change SymbolicFile::printSymbolName to use Error 2019-05-10 09:59:04 +00:00
DwarfCFIEHPrinter.h [DebugInfo] Add a DWARFDataExtractor constructor that takes ArrayRef<uint8_t> 2020-02-09 17:45:32 -08:00
ELFDumper.cpp [llvm-readobj] - Refactor the code that dumps relocations. 2020-02-16 14:39:24 +03:00
Error.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
Error.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
llvm-readobj.cpp Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
llvm-readobj.h [llvm-readobj] - Remove reportError(std::error_code EC, StringRef Input) helper. 2019-08-22 08:56:24 +00:00
LLVMBuild.txt Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
MachODumper.cpp Recommit r369190 "[llvm-readobj/llvm-readelf] - Improve/cleanup the error reporting API." 2019-08-17 16:07:18 +00:00
ObjDumper.cpp Make bugpoint work with gcc5 again. 2020-01-29 03:11:00 +01:00
ObjDumper.h [llvm-readobj] - Implement --dependent-libraries flag. 2019-12-06 14:28:29 +03:00
StackMapPrinter.h [StackMaps] Add location size to llvm-readobj -stackmap output 2019-04-13 03:08:45 +00:00
WasmDumper.cpp [WebAssembly] Make __attribute__((used)) not imply export. 2019-08-29 22:40:00 +00:00
Win64EHDumper.cpp [llvm-readobj] Fix/improve printing WinEH unwind info for linked PE images 2019-12-11 10:20:34 +02:00
Win64EHDumper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
WindowsResourceDumper.cpp [llvm-readobj] Print the resource type textually for .res files 2019-08-29 08:59:31 +00:00
WindowsResourceDumper.h Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
XCOFFDumper.cpp Using crtp to refactor the xcoff section header 2019-11-07 11:51:34 -05:00