[ELF] Demangle: don't expose raw info when getter is available.

Differential Revision:	D7693
Reviewed by:	shankarke

llvm-svn: 229635
This commit is contained in:
Davide Italiano 2015-02-18 03:54:21 +00:00
parent 85fd9f8d09
commit 6d86bb2f8b
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ void ELFLinkingContext::notifySymbolTableCoalesce(const Atom *existingAtom,
}
std::string ELFLinkingContext::demangle(StringRef symbolName) const {
if (!_demangle)
if (!demangleSymbols())
return symbolName;
// Only try to demangle symbols that look like C++ symbols

View File

@ -791,7 +791,7 @@ bool MachOLinkingContext::exportSymbolNamed(StringRef sym) const {
std::string MachOLinkingContext::demangle(StringRef symbolName) const {
// Only try to demangle symbols if -demangle on command line
if (!_demangle)
if (!demangleSymbols())
return symbolName;
// Only try to demangle symbols that look like C++ symbols