[llvm-readobj/llvm-readelf] - .stack_sizes: demangle symbol names in warnings reported.
commit1857999821536d7f350d87c5add22205fcda7d81
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 13:16:43 +0000 (25 13:16 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 25 Sep 2019 13:16:43 +0000 (25 13:16 +0000)
tree8141449a4931979955d9fc87c1585658acb0fdc0
parent5b5f106e988b3beb9de87db292389732399991b3
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@372867 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-readobj/stack-sizes.test
tools/llvm-readobj/ELFDumper.cpp