summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Unix
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-18 21:10:03 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-18 21:10:03 +0000
commit2bf893664b28b7c4130a7d5ec3b340bb910b9d31 (patch)
tree2e272a57c063e21070347747adf39c2ce5cc74e6 /llvm/lib/Support/Unix
parentfc92e8458636a98a4231d39fe803a9ea886764be (diff)
downloadbcm5719-llvm-2bf893664b28b7c4130a7d5ec3b340bb910b9d31.tar.gz
bcm5719-llvm-2bf893664b28b7c4130a7d5ec3b340bb910b9d31.zip
Remove Path::canWrite.
llvm-svn: 184235
Diffstat (limited to 'llvm/lib/Support/Unix')
-rw-r--r--llvm/lib/Support/Unix/Path.inc6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index 658b67460ce..fad2697cdb6 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -324,12 +324,6 @@ Path::isSymLink() const {
return S_ISLNK(buf.st_mode);
}
-
-bool
-Path::canWrite() const {
- return 0 == access(path.c_str(), W_OK);
-}
-
bool
Path::isRegularFile() const {
// Get the status so we can determine if it's a file or directory
OpenPOWER on IntegriCloud