[all-commits] [llvm/llvm-project] 279943: [obj2yaml] - Don't emit EM_NONE.
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Thu Sep 17 06:00:47 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 279943edf87887403fce72c505f9760764e416f0
https://github.com/llvm/llvm-project/commit/279943edf87887403fce72c505f9760764e416f0
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-09-17 (Thu, 17 Sep 2020)
Changed paths:
M llvm/test/tools/obj2yaml/ELF/call-graph-profile-section.yaml
M llvm/test/tools/obj2yaml/ELF/duplicate-symbol-and-section-names.yaml
M llvm/test/tools/obj2yaml/ELF/emachine.yaml
M llvm/test/tools/obj2yaml/ELF/gnu-unique-symbols.yaml
M llvm/test/tools/obj2yaml/ELF/implicit-sections-order.yaml
M llvm/test/tools/obj2yaml/ELF/invalid-section-name.yaml
M llvm/test/tools/obj2yaml/ELF/no-symtab.yaml
M llvm/test/tools/obj2yaml/ELF/null-section.yaml
M llvm/test/tools/obj2yaml/ELF/sht-symtab-shndx.yaml
M llvm/test/tools/obj2yaml/ELF/stack-sizes.yaml
M llvm/test/tools/obj2yaml/ELF/symbol-visibility.yaml
M llvm/test/tools/obj2yaml/ELF/versym-section.yaml
M llvm/tools/obj2yaml/elf2yaml.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list