aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2014-03-06 19:07:35 +0000
committerReid Kleckner <reid@kleckner.net>2014-03-06 19:07:35 +0000
commit4357f645f590ac4c24037f8db3d809bc143db13f (patch)
treedf61f8df21a48cd26da2b068ab9c9f1add4175c3 /llvm/lib/Support/Unix/Path.inc
parent2bed257af1fe562caf39d7932235f7f0b10b4713 (diff)
downloadllvm-4357f645f590ac4c24037f8db3d809bc143db13f.zip
llvm-4357f645f590ac4c24037f8db3d809bc143db13f.tar.gz
llvm-4357f645f590ac4c24037f8db3d809bc143db13f.tar.bz2
Revert create_symbolic_link and both depending changes
This reverts commits r203136, r203137, and r203138. This code doesn't build on Windows. Even on Vista+, Windows requires elevated privileges to create a symlink. Therefore we can't use symlinks in the compiler. We'll have to find another approach. llvm-svn: 203143
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index fe3f43a..caa30c7 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -285,19 +285,6 @@ error_code create_hard_link(const Twine &to, const Twine &from) {
return error_code::success();
}
-error_code create_symbolic_link(const Twine &to, const Twine &from) {
- // Get arguments.
- SmallString<128> from_storage;
- SmallString<128> to_storage;
- StringRef f = from.toNullTerminatedStringRef(from_storage);
- StringRef t = to.toNullTerminatedStringRef(to_storage);
-
- if (::symlink(t.begin(), f.begin()) == -1)
- return error_code(errno, system_category());
-
- return error_code::success();
-}
-
error_code remove(const Twine &path, bool IgnoreNonExisting) {
SmallString<128> path_storage;
StringRef p = path.toNullTerminatedStringRef(path_storage);