diff options
| author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 13:45:45 +0000 |
|---|---|---|
| committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-13 13:45:45 +0000 |
| commit | b32292ddf70dbd69755ae1618aac83cb0b4ea253 (patch) | |
| tree | 2b4b93f977e3a282641362ae66af521b8501ad71 /llvm/lib/Support/Unix | |
| parent | 8978389a3270ec6f3d595800f4b06a227150e9a6 (diff) | |
| download | bcm5719-llvm-b32292ddf70dbd69755ae1618aac83cb0b4ea253.tar.gz bcm5719-llvm-b32292ddf70dbd69755ae1618aac83cb0b4ea253.zip | |
Remove dead code.
llvm-svn: 201327
Diffstat (limited to 'llvm/lib/Support/Unix')
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 84a5751203e..20e9642897e 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -360,19 +360,6 @@ error_code create_hard_link(const Twine &to, const Twine &from) { return error_code::success(); } -error_code create_symlink(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 &existed) { SmallString<128> path_storage; StringRef p = path.toNullTerminatedStringRef(path_storage); |

