This is an archive of the discontinued LLVM Phabricator instance.

[obj2yaml] - Don't emit EM_NONE.
ClosedPublic

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

Details

Summary

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.

Diff Detail

Event Timeline

grimar created this revision.Sep 17 2020, 5:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: emaste. · View Herald Transcript
grimar requested review of this revision.Sep 17 2020, 5:46 AM
This revision is now accepted and ready to land.Sep 17 2020, 5:56 AM
This revision was automatically updated to reflect the committed changes.