parent
ce039266c1
commit
b4c63caf76
|
@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue