[lld] r229635 - [ELF] Demangle: don't expose raw info when getter is available.
Davide Italiano
davide at freebsd.org
Tue Feb 17 19:54:22 PST 2015
Author: davide
Date: Tue Feb 17 21:54:21 2015
New Revision: 229635
URL: http://llvm.org/viewvc/llvm-project?rev=229635&view=rev
Log:
[ELF] Demangle: don't expose raw info when getter is available.
Differential Revision: D7693
Reviewed by: shankarke
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp?rev=229635&r1=229634&r2=229635&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFLinkingContext.cpp Tue Feb 17 21:54:21 2015
@@ -232,7 +232,7 @@ void ELFLinkingContext::notifySymbolTabl
}
std::string ELFLinkingContext::demangle(StringRef symbolName) const {
- if (!_demangle)
+ if (!demangleSymbols())
return symbolName;
// Only try to demangle symbols that look like C++ symbols
Modified: lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp?rev=229635&r1=229634&r2=229635&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp (original)
+++ lld/trunk/lib/ReaderWriter/MachO/MachOLinkingContext.cpp Tue Feb 17 21:54:21 2015
@@ -791,7 +791,7 @@ bool MachOLinkingContext::exportSymbolNa
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
More information about the llvm-commits
mailing list