[llvm-readelf] - Simplify the implementation of getSectionTypeString() helper. NFCI.
authorGeorgii Rymar <grimar@accesssoftek.com>
Wed, 22 Jul 2020 14:44:32 +0000 (17:44 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 23 Jul 2020 10:04:42 +0000 (13:04 +0300)
commit1162ffe8f4b78e22fef69218054a3a58312c7d30
treee133842efbc658723df36b0717db9afbb155dc93
parent65fd651980a8ad965363807cc334c513e4c8ffe4
[llvm-readelf] - Simplify the implementation of getSectionTypeString() helper. NFCI.

It is used for printing section headers in the GNU style
and the implementation can be simplified.

Differential revision: https://reviews.llvm.org/D84330
llvm/tools/llvm-readobj/ELFDumper.cpp