Print reasonable representations of type names in llvm-nm, readelf and readobj
authorSunil Srivastava <sunil_srivastava@playstation.sony.com>
Fri, 9 Aug 2019 16:54:51 +0000 (16:54 +0000)
committerSunil Srivastava <sunil_srivastava@playstation.sony.com>
Fri, 9 Aug 2019 16:54:51 +0000 (16:54 +0000)
commit27f6f2f88bf90d987a32e43cd93b88e5a71fb498
tree5bc5259b467d16b4cfa405fbcaa8db865bc8add7
parent3caf9af6c6fcb2f6ddf05de34d4809326e8dd90f
Print reasonable representations of type names in llvm-nm, readelf and readobj

For type values that do not have proper names, print reasonable representation
in llvm-nm, llvm-readobj and llvm-readelf, matching GNU tools.s

Fixes PR41713.

Differential Revision: https://reviews.llvm.org/D65537

llvm-svn: 368451
llvm/include/llvm/Object/ELFObjectFile.h
llvm/lib/Object/ELFObjectFile.cpp
llvm/test/tools/llvm-nm/format-sysv-type.test
llvm/test/tools/llvm-readobj/elf-symbol-types.test
llvm/test/tools/yaml2obj/symbol-type.yaml