[LLD] Convert demangleItanium to use the higher level llvm::demangle function. NFC.
authorMartin Storsjo <martin@martin.st>
Fri, 27 Sep 2019 12:24:03 +0000 (12:24 +0000)
committerMartin Storsjo <martin@martin.st>
Fri, 27 Sep 2019 12:24:03 +0000 (12:24 +0000)
commitdd71b2d4c31c72cb58c95c07c1eb7175fe16e7a9
treecf8a6fc9b95f14d4ee565831018075c286782f4c
parentbf6f4e99329ec2e038904e73193f0e9fe2fc128a
[LLD] Convert demangleItanium to use the higher level llvm::demangle function. NFC.

This avoids a few lines of boilerplate of dealing with C string
allocations.

Add a testcase for a case where demangling shouldn't happen.

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

llvm-svn: 373076
lld/Common/Strings.cpp
lld/test/ELF/undef.s