Skip to content

Commit

Permalink
[ELF] Demangle: don't expose raw info when getter is available.
Browse files Browse the repository at this point in the history
Differential Revision:	D7693
Reviewed by:	shankarke

llvm-svn: 229635
  • Loading branch information
dcci committed Feb 18, 2015
1 parent 85fd9f8 commit 6d86bb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lld/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lld/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 6d86bb2

Please sign in to comment.