From 8ff0c113575167809365d2de5f6a204ff9c9c2bb Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Mon, 27 Jun 2016 19:53:53 +0000 Subject: [yaml2obj] Remove --format option in favor of YAML tags Summary: 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. Reviewers: rafael, Bigcheese, compnerd, silvas Subscribers: compnerd, llvm-commits Differential Revision: http://reviews.llvm.org/D21711 llvm-svn: 273915 --- llvm/test/tools/llvm-objdump/Inputs/file-aux-record.yaml | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/test/tools/llvm-objdump/Inputs') diff --git a/llvm/test/tools/llvm-objdump/Inputs/file-aux-record.yaml b/llvm/test/tools/llvm-objdump/Inputs/file-aux-record.yaml index d19afaf68a8..98e5ae64df9 100644 --- a/llvm/test/tools/llvm-objdump/Inputs/file-aux-record.yaml +++ b/llvm/test/tools/llvm-objdump/Inputs/file-aux-record.yaml @@ -1,3 +1,4 @@ +!COFF header: !Header Machine: IMAGE_FILE_MACHINE_I386 # (0x14c) Characteristics: [ IMAGE_FILE_DEBUG_STRIPPED ] -- cgit v1.2.3