[XCOFF] [llvm-readobj] replace tests using binary as input
authorEsme-Yi <esme.yi@ibm.com>
Mon, 1 Nov 2021 08:43:32 +0000 (08:43 +0000)
committerEsme-Yi <esme.yi@ibm.com>
Mon, 1 Nov 2021 08:43:32 +0000 (08:43 +0000)
commit81441cf44c145e1d90a10c743e0190a44fbf8fcb
tree14907628af5206053243a1336661c0bdd854540f
parent0118a8044f8bda1a2e1b3add5e244ef4ce714982
[XCOFF] [llvm-readobj] replace tests using binary as input
with tests generated by yaml2obj.

Summary: Because yaml2obj supports basic transforming for XCOFF,
         some of the binary inputs used in the tests of llvm-readobj
         can be replaced with yaml files.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D111699
llvm/include/llvm/ObjectYAML/XCOFFYAML.h
llvm/test/tools/llvm-readobj/XCOFF/Inputs/basic-neg-sym-count.o [deleted file]
llvm/test/tools/llvm-readobj/XCOFF/Inputs/basic-neg-time.o [deleted file]
llvm/test/tools/llvm-readobj/XCOFF/Inputs/basic.o [deleted file]
llvm/test/tools/llvm-readobj/XCOFF/Inputs/basic64.o [deleted file]
llvm/test/tools/llvm-readobj/XCOFF/basic.test [deleted file]
llvm/test/tools/llvm-readobj/XCOFF/file-header.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/XCOFF/relocations.test [new file with mode: 0644]
llvm/test/tools/llvm-readobj/XCOFF/sections.test