aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-06-12 13:55:07 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-06-12 13:55:07 +0000
commitf90690f202901c7f6ba633bc144c9de9247b1834 (patch)
treedb3c7aae830ebc86e32593aadb0fad99f27b8b24
parentf42b14e2a8d04b6288635192051adf36423af2c1 (diff)
downloadexternal_llvm-f90690f202901c7f6ba633bc144c9de9247b1834.zip
external_llvm-f90690f202901c7f6ba633bc144c9de9247b1834.tar.gz
external_llvm-f90690f202901c7f6ba633bc144c9de9247b1834.tar.bz2
Remove Path::makeExecutableOnDisk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183826 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Support/PathV1.h6
-rw-r--r--lib/Support/Unix/Path.inc6
-rw-r--r--lib/Support/Windows/Path.inc5
3 files changed, 0 insertions, 17 deletions
diff --git a/include/llvm/Support/PathV1.h b/include/llvm/Support/PathV1.h
index 09ab041..4d6064a 100644
--- a/include/llvm/Support/PathV1.h
+++ b/include/llvm/Support/PathV1.h
@@ -434,12 +434,6 @@ namespace sys {
/// @brief Make the file writable;
bool makeWriteableOnDisk(std::string* ErrMsg = 0);
- /// This method attempts to make the file referenced by the Path object
- /// available for execution so that the canExecute() method will return
- /// true.
- /// @brief Make the file readable;
- bool makeExecutableOnDisk(std::string* ErrMsg = 0);
-
/// This method allows the last modified time stamp and permission bits
/// to be set on the disk object referenced by the Path.
/// @throws std::string if an error occurs.
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index f154bf6..201a7c9 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -459,12 +459,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
return false;
}
-bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
- if (!AddPermissionBits(*this, 0111))
- return MakeErrMsg(ErrMsg, path + ": can't make file executable");
- return false;
-}
-
bool
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
DIR* direntries = ::opendir(path.c_str());
diff --git a/lib/Support/Windows/Path.inc b/lib/Support/Windows/Path.inc
index 413aa94..5ee1e0a 100644
--- a/lib/Support/Windows/Path.inc
+++ b/lib/Support/Windows/Path.inc
@@ -379,11 +379,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
return false;
}
-bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
- // All files are executable on Windows (ignoring security attributes).
- return false;
-}
-
bool
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
WIN32_FILE_ATTRIBUTE_DATA fi;