diff options
author | Rui Ueyama <ruiu@google.com> | 2017-01-06 09:38:43 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2017-01-06 09:38:43 +0000 |
commit | 70219f174947459b71a6cc08b3a948000912aa18 (patch) | |
tree | 50ce0d257a2af5f61d9b1f4670846c686c660f5f /lib | |
parent | 1d3f65a2907cf12d75004965debd98badf8485d5 (diff) |
Remove lld::convertToUnixPathSeparator.
Now TarWriter takes care of path separator conversion, so we don't
need to handle that in LLD.
git-svn-id: https://llvm.org/svn/llvm-project/lld/trunk@291221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Core/Reproduce.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/Core/Reproduce.cpp b/lib/Core/Reproduce.cpp index e9f7ba1fb..4f9303727 100644 --- a/lib/Core/Reproduce.cpp +++ b/lib/Core/Reproduce.cpp @@ -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 -} |