summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-19 13:25:31 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-19 13:25:31 +0000
commit988252dcd2b87f61a8a02d412c9b0d8170f8b3a0 (patch)
treebffc267ff7f8bccd48f18f16338fc8b1fa4e587b /llvm/lib/Support/Unix
parent8be5c0550e5a4ba0aec8e5e6338be8c6e2316140 (diff)
downloadbcm5719-llvm-988252dcd2b87f61a8a02d412c9b0d8170f8b3a0.tar.gz
bcm5719-llvm-988252dcd2b87f61a8a02d412c9b0d8170f8b3a0.zip
Remove Path::canExecute.
llvm-svn: 184298
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index fad2697cdb6..f3e4b610563 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/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) {
OpenPOWER on IntegriCloud