// Returns a symbol name for an error message. std::string lld::toString(coff::Symbol &B) { if (Optional<std::string> S = lld::demangleMSVC(B.getName())) return ("\"" + *S + "\" (" + B.getName() + ")").str(); return B.getName(); }
// Returns a symbol name for an error message. std::string lld::toString(coff::Symbol &B) { if (Config->Demangle) if (Optional<std::string> S = lld::demangleMSVC(B.getName())) return *S; return B.getName(); }