HomePhabricator

[obj2yaml] - Don't emit EM_NONE.

Authored by grimar on Sep 17 2020, 5:36 AM.

Description

[obj2yaml] - Don't emit EM_NONE.

When ELF header's e_machine == 0, we emit:

Machine: EM_NONE

We can avoid doing this, because yaml2obj sets the
e_machine field to EM_NONE by default.

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

Details