aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-readobj/llvm-readobj.cpp
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2018-09-15 18:27:09 +0000
committerNico Weber <nicolasweber@gmx.de>2018-09-15 18:27:09 +0000
commitda15acbd68cb9c60aef5a4e51a5383641c65147d (patch)
tree1b11539cb85b25f4bef0396faa8715f420892f05 /llvm/tools/llvm-readobj/llvm-readobj.cpp
parentda01b342b255e6e99580313d7b74753ccb4f6716 (diff)
downloadllvm-da15acbd68cb9c60aef5a4e51a5383641c65147d.zip
llvm-da15acbd68cb9c60aef5a4e51a5383641c65147d.tar.gz
llvm-da15acbd68cb9c60aef5a4e51a5383641c65147d.tar.bz2
lld-link: print demangled symbol names for "undefined symbol" diagnostics
For this, add a few toString() calls when printing the "undefined symbol" diagnostics; toString() already does demangling on Windows hosts. Also make lld::demangleMSVC() (called by toString(Symbol*)) call LLVM's microsoftDemangle() instead of UnDecorateSymbolName() so that it works on non-Windows hosts – this makes both updating tests easier and provides a better user experience for people doing cross-links. This doesn't yet do the right thing for symbols starting with __imp_, but that can be improved in a follow-up. Differential Revision: https://reviews.llvm.org/D52104 llvm-svn: 342332
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions