llvm-project/llvm/test/tools/obj2yaml
George Rimar 224816ba16 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
..
Inputs [XCOFF] Implement parsing symbol table for xcoffobjfile and output as yaml format 2019-05-28 14:37:59 +00:00
aix_xcoff.test [XCOFF] Implement parsing symbol table for xcoffobjfile and output as yaml format 2019-05-28 14:37:59 +00:00
aix_xcoff_truncated_file_header.test [XCOFF] Add functionality for parsing AIX XCOFF object file headers 2019-04-04 00:53:21 +00:00
basic-minidump.yaml Minidump: Add support for the MemoryList stream 2019-05-16 15:17:30 +00:00
coff-bss.s [COFF] Fix .bss section size bug in obj2yaml / yaml2obj 2019-05-10 21:53:44 +00:00
coff-long-file-symbol.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-long-section-name.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-section-aux-symbol.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
coff-weak-external.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
duplicate-symbol-and-section-names.test [yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names. 2019-06-25 08:22:57 +00:00
dynamic-section-arch-tags.test [llvm-objdump/llvm-readobj/obj2yaml/yaml2obj] Support DT_PPC_GOT and DT_PPC_OPT 2019-06-05 01:36:48 +00:00
dynamic-section.test [BinaryFormat] Add DT_USED tag into dynamic section. 2019-03-06 01:28:40 +00:00
elf-entsize.yaml
elf-gnu-unique-symbols.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
elf-reladyn-section-shinfo.yaml [yaml2elf/obj2yaml] - Allow normal parsing/dumping of the .rela.dyn section 2019-04-18 11:02:07 +00:00
elf-shinfo.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Content and RawContentSection::Size optional 2019-06-10 12:43:18 +00:00
invalid_input_file.test
lit.local.cfg [obj2yaml][yaml2obj]Locate all .yaml and .test tests 2019-02-20 15:13:44 +00:00
missing_symtab.test [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
no-symbol-reloc.test [test/Object, obj2yaml] - Move test cases from test/Object and cleanup. 2019-07-12 10:29:29 +00:00
section-group.test Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target." 2019-07-15 11:53:39 +00:00
section-type.yaml [yaml2obj][obj2yaml] Remove section type range markers from allowed mappings and support hex values 2019-02-19 16:22:21 +00:00
sections-info.yaml [yaml2obj/obj2yaml] - Make RawContentSection::Info Optional<> 2019-06-19 08:57:38 +00:00
special-symbol-indices.yaml Recommit r366052 "[obj2yaml] - Rework tool's error reporting logic for ELF target." 2019-07-15 11:53:39 +00:00
symbol-type.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verdef-section.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
verneed-section.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00
versym-section.yaml [yaml2obj][obj2yaml] - Change how symbol's binding is descibed when parsing/dumping. 2019-04-03 14:53:42 +00:00