[PATCH] D21711: [yaml2obj] Remove --format option in favor of YAML tags
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 24 18:24:19 PDT 2016
beanz created this revision.
beanz added reviewers: silvas, rafael, Bigcheese.
beanz added a subscriber: llvm-commits.
Our YAML library's handling of tags isn't perfect, but it is good enough to get rid of the need for the --format argument to yaml2obj. This patch does exactly that.
Instead of requiring --format, it infers the format based on the tags found in the object file. The supported tags are:
!ELF
!COFF
!mach-o
!fat-mach-o
I have a corresponding patch that is quite large that fixes up all the in-tree test cases.
http://reviews.llvm.org/D21711
Files:
include/llvm/ObjectYAML/MachOYAML.h
include/llvm/ObjectYAML/ObjectYAML.h
lib/ObjectYAML/CMakeLists.txt
lib/ObjectYAML/COFFYAML.cpp
lib/ObjectYAML/ELFYAML.cpp
lib/ObjectYAML/MachOYAML.cpp
lib/ObjectYAML/ObjectYAML.cpp
tools/obj2yaml/macho2yaml.cpp
tools/yaml2obj/yaml2coff.cpp
tools/yaml2obj/yaml2elf.cpp
tools/yaml2obj/yaml2macho.cpp
tools/yaml2obj/yaml2obj.cpp
tools/yaml2obj/yaml2obj.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21711.61870.patch
Type: text/x-patch
Size: 15858 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160625/5527c251/attachment.bin>
More information about the llvm-commits
mailing list