aboutsummaryrefslogtreecommitdiffstats
path: root/include/lld/Common/Strings.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/lld/Common/Strings.h')
-rw-r--r--include/lld/Common/Strings.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/lld/Common/Strings.h b/include/lld/Common/Strings.h
index ded22dd769be..9d002bf336de 100644
--- a/include/lld/Common/Strings.h
+++ b/include/lld/Common/Strings.h
@@ -18,9 +18,8 @@
namespace lld {
// Returns a demangled C++ symbol name. If Name is not a mangled
-// name, it returns Optional::None.
-llvm::Optional<std::string> demangleItanium(llvm::StringRef name);
-llvm::Optional<std::string> demangleMSVC(llvm::StringRef s);
+// name, it returns name.
+std::string demangleItanium(llvm::StringRef name);
std::vector<uint8_t> parseHex(llvm::StringRef s);
bool isValidCIdentifier(llvm::StringRef s);