[llvm-readobj/llvm-readelf] - .stack_sizes: demangle symbol names in warnings reported.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 13:16:43 +0000 (13:16 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 13:16:43 +0000 (13:16 +0000)
commit791526085338594381adcacc13f04a4834e56d36
treeb24c3fb41297d450e9e3aea4ae27000ca2fa2fe7
parentdec03223a97af0e4dfcb23da55c0f7f8c9b62d00
[llvm-readobj/llvm-readelf] - .stack_sizes: demangle symbol names in warnings reported.

I started this patch as a refactoring, tried to make a helper for
getting symbol names, similar to how we get section names
used in warning messages.

So this patch cleanups the code and fixes an issue: symbol names
in warning messages were not demangled.

Differential revision: https://reviews.llvm.org/D68012

llvm-svn: 372867
llvm/test/tools/llvm-readobj/stack-sizes.test
llvm/tools/llvm-readobj/ELFDumper.cpp