[yaml2obj][obj2yaml] - Teach tools to work with regular archives.
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 20 Oct 2020 12:12:28 +0000 (15:12 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 28 Oct 2020 12:27:11 +0000 (15:27 +0300)
commit47369e194a48dbe3cf04a7845e23e25e43e973f0
tree838da96c0283d152a5b07a014b411b6117ba8e5e
parentf53d7f55f14c14f1366192f7117840eb0afbd5b2
[yaml2obj][obj2yaml] - Teach tools to work with regular archives.

This teaches obj2yaml to dump valid regular (not thin) archives.
This also teaches yaml2obj to recognize archives YAML descriptions,
what allows to craft all different kinds of archives (valid and broken ones).

Differential revision: https://reviews.llvm.org/D89949
14 files changed:
llvm/include/llvm/ObjectYAML/ArchiveYAML.h [new file with mode: 0644]
llvm/include/llvm/ObjectYAML/ObjectYAML.h
llvm/include/llvm/ObjectYAML/yaml2obj.h
llvm/lib/ObjectYAML/ArchiveEmitter.cpp [new file with mode: 0644]
llvm/lib/ObjectYAML/ArchiveYAML.cpp [new file with mode: 0644]
llvm/lib/ObjectYAML/CMakeLists.txt
llvm/lib/ObjectYAML/ObjectYAML.cpp
llvm/lib/ObjectYAML/yaml2obj.cpp
llvm/test/tools/obj2yaml/Archives/regular.yaml [new file with mode: 0644]
llvm/test/tools/yaml2obj/Archives/regular.yaml [new file with mode: 0644]
llvm/tools/obj2yaml/CMakeLists.txt
llvm/tools/obj2yaml/archive2yaml.cpp [new file with mode: 0644]
llvm/tools/obj2yaml/obj2yaml.cpp
llvm/tools/obj2yaml/obj2yaml.h