Esempio n. 1
0
// 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();
}
Esempio n. 2
0
// 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();
}