diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-19 13:25:31 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-19 13:25:31 +0000 |
commit | f6f3be69d81e8e41f90de9913738a9ba11190221 (patch) | |
tree | b06ff195ace9989a56226d2c95468a5c38342127 /lib/Support/Unix/Path.inc | |
parent | dd5fe2ffc6f564192876065d2617ecbc18d03f23 (diff) | |
download | external_llvm-f6f3be69d81e8e41f90de9913738a9ba11190221.zip external_llvm-f6f3be69d81e8e41f90de9913738a9ba11190221.tar.gz external_llvm-f6f3be69d81e8e41f90de9913738a9ba11190221.tar.bz2 |
Remove Path::canExecute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix/Path.inc')
-rw-r--r-- | lib/Support/Unix/Path.inc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index fad2697..f3e4b61 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -338,18 +338,6 @@ Path::isRegularFile() const { return false; } -bool -Path::canExecute() const { - if (0 != access(path.c_str(), R_OK | X_OK )) - return false; - struct stat buf; - if (0 != stat(path.c_str(), &buf)) - return false; - if (!S_ISREG(buf.st_mode)) - return false; - return true; -} - const FileStatus * PathWithStatus::getFileStatus(bool update, std::string *ErrStr) const { if (!fsIsValid || update) { |