[yaml2obj/obj2yaml] - Allow setting an arbitrary values for e_machine.
commit04bd50776a71dfa89900e74d90da3789a83fa318
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Sep 2019 11:51:26 +0000 (17 11:51 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 17 Sep 2019 11:51:26 +0000 (17 11:51 +0000)
treeb517e644719b3affe07d564d02294a16a7f5507b
parentb1eb2941028706c81c636deb0b5ef9806087a088
[yaml2obj/obj2yaml] - Allow setting an arbitrary values for e_machine.

Currently we only allow using a known named constants
for `Machine` field in YAML documents.

This patch allows using any numbers (valid or "unknown")
and adds test cases for current and new functionality.

With this it is possible to write a test cases for really unknown
EM_* targets.

Differential revision: https://reviews.llvm.org/D67652

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372108 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ObjectYAML/ELFYAML.cpp
test/tools/obj2yaml/elf-emachine.yaml [new file with mode: 0644]
test/tools/yaml2obj/elf-emachine.yaml [new file with mode: 0644]