yaml2obj: add -format=<fmt> to choose input YAML interpretation
authorSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 18:51:34 +0000 (18:51 +0000)
committerSean Silva <silvas@purdue.edu>
Wed, 5 Jun 2013 18:51:34 +0000 (18:51 +0000)
commitdb9dc53871af4e501bdb5dfcb604c90425cd3859
tree7401309308235d7bc33b9ba9958d76dcfb0202dd
parentcc81b38c4ca2ae0ee8bc6a92e531886af94f5bc2
yaml2obj: add -format=<fmt> to choose input YAML interpretation

See the comment in yaml2obj.cpp for why this is currently needed.
Eventually we can get rid of this, but for now it is needed in order to
make forward progress with adding ELF support, and should be
straightforward to remove later.

Also, preserve the default of COFF, to avoid breaking existing tests.
This policy can easily be changed later though.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183332 91177308-0d34-0410-b5e6-96231b3b80d8
tools/yaml2obj/yaml2obj.cpp