diff options
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 2c8eba3949..47704946c8 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -36,4 +36,19 @@ void removeFile(const std::string &Filename); /// std::string getUniqueFilename(const std::string &FilenameBase); +/// +/// Method: MakeFileExecutable() +/// +/// Description: +/// This method turns on whatever access attributes are needed to make the +/// specified file executable. +/// +/// Return value: +/// True - The operation succeeded. +/// False - The operation failed. +/// +/// Notes: +/// In case of failure, the file's access attributes are unspecified. +/// +bool MakeFileExecutable (const std::string & Filename); #endif |