1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/tools
George Rimar 13fafb5bb5 Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target."
No changes, LLD code was updated in r366057.

Original commit message:

ELF.h contains two getSymbol methods
which seems to be used only from obj2yaml.

One of these methods calls another, which in turn
contains untested error message which doesn't
provide enough information.

Problem is that after improving only just that message,
obj2yaml will not show it,
("Error reading file: yaml: Invalid data was
encountered while parsing the file" message will be shown instead),
because internal errors handling of tool is based on ErrorOr<> class which
stores a error code and as a result can only show a predefined error string, what
actually isn't very useful.

In this patch, I rework obj2yaml's error reporting system
for ELF targets to use Error  Expected<> classes.
Also, I improve the error message produced
by getSymbol for demonstration of the new functionality.

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

llvm-svn: 366058
2019-07-15 11:53:39 +00:00
..
bugpoint
bugpoint-passes
dsymutil Cleanup: llvm::bsearch -> llvm::partition_point after r364719 2019-06-30 11:19:56 +00:00
gold
llc
lli [lli] Fix a typo in a header. 2019-07-02 18:39:32 +00:00
llvm-ar [llvm-ar] Document response file support in --help 2019-06-28 18:48:05 +00:00
llvm-as
llvm-as-fuzzer
llvm-bcanalyzer [llvm-bcanalyzer] Refactor and move to libLLVMBitReader 2019-07-08 02:06:34 +00:00
llvm-c-test llvm-c-test avoid calling malloc(0) 2019-07-04 14:36:34 +00:00
llvm-cat
llvm-cfi-verify
llvm-config
llvm-cov [llvm-cov[ Fix lcov coverage report contains functions from other compilation units. 2019-06-28 15:38:25 +00:00
llvm-cvtres
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dis
llvm-dwarfdump Revert "[DwarfDebug] Dump call site debug info" 2019-07-12 09:45:12 +00:00
llvm-dwp
llvm-elfabi
llvm-exegesis
llvm-extract
llvm-go
llvm-isel-fuzzer
llvm-itanium-demangle-fuzzer
llvm-jitlink [JITLink][ORC] Add EHFrameRegistrar interface, use in EHFrameRegistrationPlugin. 2019-07-04 00:05:12 +00:00
llvm-jitlistener
llvm-link
llvm-lipo [MachO] Add valid architecture function 2019-07-04 00:17:02 +00:00
llvm-lto
llvm-lto2
llvm-mc
llvm-mc-assemble-fuzzer
llvm-mc-disassemble-fuzzer
llvm-mca
llvm-microsoft-demangle-fuzzer
llvm-modextract
llvm-mt
llvm-nm [tools] [llvm-nm] Default to reading from stdin not a.out 2019-07-12 10:20:01 +00:00
llvm-objcopy [llvm-objcopy] Don't change permissions of non-regular output files 2019-07-11 10:17:59 +00:00
llvm-objdump [llvm-objdump] Keep warning for --disassemble-functions in correct order. 2019-07-09 21:53:33 +00:00
llvm-opt-fuzzer
llvm-opt-report [Remarks] Require an explicit format to the parser 2019-07-04 00:31:03 +00:00
llvm-pdbutil Slightly simplify MappedBlockStream::createIndexedStream() calls 2019-07-12 18:24:38 +00:00
llvm-profdata llvm-profdata] Handle the cases of overlapping input file and output file 2019-07-08 21:03:12 +00:00
llvm-rc
llvm-readobj [llvm-readobj/llvm-readelf] - Report a warning instead of a error when dumping a broken dynamic section. 2019-07-11 12:26:48 +00:00
llvm-rtdyld
llvm-shlib cmake: Add INSTALL_WITH_TOOLCHAIN option to add_*_library macros 2019-07-12 14:40:18 +00:00
llvm-size
llvm-special-case-list-fuzzer
llvm-split
llvm-stress
llvm-strings
llvm-symbolizer
llvm-undname
llvm-xray [Support] Move llvm::MemoryBuffer to sys::fs::file_t 2019-07-10 00:34:13 +00:00
llvm-yaml-numeric-parser-fuzzer
lto cmake: Add INSTALL_WITH_TOOLCHAIN option to add_*_library macros 2019-07-12 14:40:18 +00:00
msbuild
obj2yaml Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target." 2019-07-15 11:53:39 +00:00
opt Revert "r364412 [ExpandMemCmp][MergeICmps] Move passes out of CodeGen into opt pipeline." 2019-06-26 12:13:13 +00:00
opt-viewer
remarks-shlib cmake: Add INSTALL_WITH_TOOLCHAIN option to add_*_library macros 2019-07-12 14:40:18 +00:00
sancov [sancov] Ignore PC samples with value 0 2019-07-11 22:59:23 +00:00
sanstats
verify-uselistorder
xcode-toolchain
yaml2obj [yaml2obj] - Allow overriding the sh_size field. 2019-07-11 12:59:29 +00:00
CMakeLists.txt
LLVMBuild.txt