summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Strings.h')
-rw-r--r--lld/ELF/Strings.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lld/ELF/Strings.h b/lld/ELF/Strings.h
index 002e8c2b843..4948e9dbd56 100644
--- a/lld/ELF/Strings.h
+++ b/lld/ELF/Strings.h
@@ -18,6 +18,11 @@ namespace elf {
bool globMatch(StringRef S, StringRef T);
std::vector<uint8_t> parseHex(StringRef S);
bool isValidCIdentifier(StringRef S);
+
+// Returns a demangled C++ symbol name. If Name is not a mangled
+// name or the system does not provide __cxa_demangle function,
+// it returns an unmodified string.
+std::string demangle(StringRef Name);
}
}
OpenPOWER on IntegriCloud