forked from OSchip/llvm-project
[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:
parent
85fd9f8d09
commit
6d86bb2f8b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue