[llvm-readobj] - Rewrite reloc-types.test to use YAML. NFCI.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 30 May 2019 12:39:05 +0000 (12:39 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 30 May 2019 12:39:05 +0000 (12:39 +0000)
commit31e6d8feea1ac18d568cbd5299c54bdae9da5f44
tree9f6b9ff3865c6f49e8b59e8dc34af1f20ec203eb
parent7eb95d672dbf302a422ae4dbb24dd7cc583b65df
[llvm-readobj] - Rewrite reloc-types.test to use YAML. NFCI.

This change rewrites and splits reloc-types.test
to use yaml2obj instead of precompiled binaries.
That allowed to remove 7 precompiled objects from the inputs.

I took the existent objects, used obj2yaml on them, simplified the result and
used yaml2obj in the test case with the result.

Notes:
* I converted, but did not remove relocs.obj.elf-i386, relocs.obj.elf-x86_64 or relocs.obj.elf-mips objects
because found they are used in other tests.
* I was unable to convert relocs.obj.elf-ppc64, because obj2yaml hangs on this file for me.
* I was unable to convert relocs.obj.macho-arm, relocs.obj.macho-i386 and relocs.obj.macho-x86_64
because the output produced by obj2yaml does not seem to be correct.
* Because of the above I did not remove the script for creating all
of those objects: test\tools\llvm-readobj\Inputs\relocs.py

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

llvm-svn: 362089
21 files changed:
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.coff-i386 [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.coff-x86_64 [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-aarch64 [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-aarch64-ilp32 [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-arm [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-lanai [deleted file]
llvm/test/tools/llvm-readobj/Inputs/relocs.obj.elf-mips64el [deleted file]
llvm/test/tools/llvm-readobj/reloc-types-coff-i386.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-coff-x64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-aarch64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-arm.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-i386.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-lanai.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-mips.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-mips64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-ppc64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-elf-x64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-macho-arm.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-macho-i386.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types-macho-x64.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/reloc-types.test [deleted file]