Index: wasm/Driver.cpp =================================================================== --- wasm/Driver.cpp +++ wasm/Driver.cpp @@ -239,8 +239,7 @@ // Add a synthetic dummy for weak undefined functions. These dummies will // be GC'd if not used as the target of any "call" instructions. - StringRef StubName = - Saver.save("undefined function " + toString(*Sym, false)); + StringRef StubName = Saver.save("undefined function " + toString(*Sym)); SyntheticFunction *Func = make(Sig, StubName); Func->setBody(UnreachableFn); // Ensure it compares equal to the null pointer, and so that table relocs Index: wasm/Symbols.h =================================================================== --- wasm/Symbols.h +++ wasm/Symbols.h @@ -312,7 +312,7 @@ } // namespace wasm // Returns a symbol name for an error message. -std::string toString(const wasm::Symbol &Sym, bool QuoteDemangled = true); +std::string toString(const wasm::Symbol &Sym); std::string toString(wasm::Symbol::Kind Kind); std::string toString(WasmSymbolType Type); Index: wasm/Symbols.cpp =================================================================== --- wasm/Symbols.cpp +++ wasm/Symbols.cpp @@ -180,10 +180,10 @@ void LazySymbol::fetch() { cast(File)->addMember(&ArchiveSymbol); } -std::string lld::toString(const wasm::Symbol &Sym, bool QuoteDemangled) { +std::string lld::toString(const wasm::Symbol &Sym) { if (Config->Demangle) if (Optional S = demangleItanium(Sym.getName())) - return QuoteDemangled ? ("`" + *S + "'") : *S; + return *S; return Sym.getName(); }