Rename lld::stringize -> lld::toString.

llvm-svn: 291223
This commit is contained in:
Rui Ueyama 2017-01-06 10:04:35 +00:00
parent ce039266c1
commit b4c63caf76
5 changed files with 5 additions and 5 deletions

View File

@ -369,7 +369,7 @@ static std::string createResponseFile(const opt::InputArgList &Args,
case OPT_libpath:
break;
default:
OS << stringize(Arg) << "\n";
OS << toString(Arg) << "\n";
}
}

View File

@ -426,7 +426,7 @@ static uint64_t parseSectionAddress(StringRef S, opt::Arg *Arg) {
if (S.startswith("0x"))
S = S.drop_front(2);
if (S.getAsInteger(16, VA))
error("invalid argument: " + stringize(Arg));
error("invalid argument: " + toString(Arg));
return VA;
}

View File

@ -146,7 +146,7 @@ std::string elf::createResponseFile(const opt::InputArgList &Args) {
<< "\n";
break;
default:
OS << stringize(Arg) << "\n";
OS << toString(Arg) << "\n";
}
}
return Data.str();

View File

@ -33,7 +33,7 @@ std::string quote(StringRef S);
std::string rewritePath(StringRef S);
// Returns the string form of the given argument.
std::string stringize(llvm::opt::Arg *Arg);
std::string toString(llvm::opt::Arg *Arg);
}
#endif

View File

@ -55,7 +55,7 @@ std::string lld::rewritePath(StringRef S) {
return S;
}
std::string lld::stringize(opt::Arg *Arg) {
std::string lld::toString(opt::Arg *Arg) {
std::string K = Arg->getSpelling();
if (Arg->getNumValues() == 0)
return K;