예제 #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();
}
예제 #2
0
파일: Symbols.cpp 프로젝트: llvm-mirror/lld
// 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();
}