diff --git a/lld/MachO/Symbols.cpp b/lld/MachO/Symbols.cpp --- a/lld/MachO/Symbols.cpp +++ b/lld/MachO/Symbols.cpp @@ -9,7 +9,7 @@ #include "Symbols.h" #include "InputFiles.h" #include "SyntheticSections.h" -#include "lld/Common/Strings.h" +#include "llvm/Demangle/Demangle.h" using namespace llvm; using namespace lld; @@ -32,7 +32,7 @@ static std::string maybeDemangleSymbol(StringRef symName) { if (config->demangle) { symName.consume_front("_"); - return demangle(symName, true); + return demangle(std::string(symName)); } return std::string(symName); }