summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Path.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-03-20 17:39:04 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-03-20 17:39:04 +0000
commit2006306f53eb30b828061706da82ddc1e9044bd9 (patch)
treee37141b0feb3630925264eb56a18f51617dcde26 /llvm/lib/Support/Path.cpp
parentd494b29596af5b7fd9a946e6d084bc7b32987c82 (diff)
downloadbcm5719-llvm-2006306f53eb30b828061706da82ddc1e9044bd9.tar.gz
bcm5719-llvm-2006306f53eb30b828061706da82ddc1e9044bd9.zip
Remove dead and incorrect code.
is_symlink was always false since it was using stat instead of lstat. llvm-svn: 204361
Diffstat (limited to 'llvm/lib/Support/Path.cpp')
-rw-r--r--llvm/lib/Support/Path.cpp15
1 files changed, 1 insertions, 14 deletions
diff --git a/llvm/lib/Support/Path.cpp b/llvm/lib/Support/Path.cpp
index 895e81f4946..5b73631d989 100644
--- a/llvm/lib/Support/Path.cpp
+++ b/llvm/lib/Support/Path.cpp
@@ -870,23 +870,10 @@ error_code is_regular_file(const Twine &path, bool &result) {
return error_code::success();
}
-bool is_symlink(file_status status) {
- return status.type() == file_type::symlink_file;
-}
-
-error_code is_symlink(const Twine &path, bool &result) {
- file_status st;
- if (error_code ec = status(path, st))
- return ec;
- result = is_symlink(st);
- return error_code::success();
-}
-
bool is_other(file_status status) {
return exists(status) &&
!is_regular_file(status) &&
- !is_directory(status) &&
- !is_symlink(status);
+ !is_directory(status);
}
void directory_entry::replace_filename(const Twine &filename, file_status st) {
OpenPOWER on IntegriCloud