mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-17 13:38:41 +00:00
Remove lld::convertToUnixPathSeparator.
Now TarWriter takes care of path separator conversion, so we don't need to handle that in LLD. llvm-svn: 291221
This commit is contained in:
parent
927ec4b5ac
commit
dac6169214
@ -34,9 +34,6 @@ std::string rewritePath(StringRef S);
|
||||
|
||||
// Returns the string form of the given argument.
|
||||
std::string stringize(llvm::opt::Arg *Arg);
|
||||
|
||||
// Replaces backslashes with slashes if Windows.
|
||||
std::string convertToUnixPathSeparator(StringRef S);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -39,7 +39,7 @@ std::string lld::relativeToRoot(StringRef Path) {
|
||||
Res = Root.substr(2);
|
||||
|
||||
path::append(Res, path::relative_path(Abs));
|
||||
return convertToUnixPathSeparator(Res);
|
||||
return Res.str();
|
||||
}
|
||||
|
||||
// Quote a given string if it contains a space character.
|
||||
@ -64,13 +64,3 @@ std::string lld::stringize(opt::Arg *Arg) {
|
||||
return K + V;
|
||||
return K + " " + V;
|
||||
}
|
||||
|
||||
std::string lld::convertToUnixPathSeparator(StringRef S) {
|
||||
#ifdef LLVM_ON_WIN32
|
||||
std::string Ret = S.str();
|
||||
std::replace(Ret.begin(), Ret.end(), '\\', '/');
|
||||
return Ret;
|
||||
#else
|
||||
return S;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user