[llvm-readobj] - Dump the ELF file type better.
authorGeorgii Rymar <grimar@accesssoftek.com>
Tue, 22 Dec 2020 12:21:26 +0000 (15:21 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Wed, 23 Dec 2020 08:13:19 +0000 (11:13 +0300)
commitbdef1f87aba656a64b34f76d2a6613b6e9299a03
tree4dd48e84a6dfdb5d14b2f582b1b8f3776a21af21
parent032600b9aef9dafe62fda6e880b5c1b0a87e4364
[llvm-readobj] - Dump the ELF file type better.

Currently llvm-readelf might print "OS Specific/Processor Specific/<unknown>"
hint when dumping the ELF file type. The patch teaches llvm-readobj to do the same.

This fixes https://bugs.llvm.org/show_bug.cgi?id=40868

I am removing `Object/elf-unknown-type.test` test because it is not in the right place,
it is outdated and very limited.
The `readobj/ELF/file-types.test` checks the functionality much better.

Differential revision: https://reviews.llvm.org/D93689
llvm/test/Object/elf-unknown-type.test [deleted file]
llvm/test/tools/llvm-readobj/ELF/file-types.test
llvm/tools/llvm-readobj/ELFDumper.cpp