forked from OSchip/llvm-project
Remove a function from header and move the implementation to a .cpp file. NFC.
llvm-svn: 354703
This commit is contained in:
parent
bac29fde53
commit
c94dad9d97
|
@ -48,12 +48,6 @@ std::string lld::quote(StringRef S) {
|
|||
return S;
|
||||
}
|
||||
|
||||
std::string lld::rewritePath(StringRef S) {
|
||||
if (fs::exists(S))
|
||||
return relativeToRoot(S);
|
||||
return S;
|
||||
}
|
||||
|
||||
std::string lld::toString(const opt::Arg &Arg) {
|
||||
std::string K = Arg.getSpelling();
|
||||
if (Arg.getNumValues() == 0)
|
||||
|
|
|
@ -151,6 +151,12 @@ void elf::printHelp() {
|
|||
outs() << Config->ProgName << ": supported targets: elf\n";
|
||||
}
|
||||
|
||||
static std::string rewritePath(StringRef S) {
|
||||
if (fs::exists(S))
|
||||
return relativeToRoot(S);
|
||||
return S;
|
||||
}
|
||||
|
||||
// Reconstructs command line arguments so that so that you can re-run
|
||||
// the same command with the same inputs. This is for --reproduce.
|
||||
std::string elf::createResponseFile(const opt::InputArgList &Args) {
|
||||
|
|
|
@ -27,10 +27,6 @@ std::string relativeToRoot(StringRef Path);
|
|||
// Quote a given string if it contains a space character.
|
||||
std::string quote(StringRef S);
|
||||
|
||||
// Rewrite the given path if a file exists with that pathname, otherwise
|
||||
// returns the original path.
|
||||
std::string rewritePath(StringRef S);
|
||||
|
||||
// Returns the string form of the given argument.
|
||||
std::string toString(const llvm::opt::Arg &Arg);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue