diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 19:38:45 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-14 19:38:45 +0000 |
commit | fcba9c56a25edc71e32a407dfd6191de6dba0ed7 (patch) | |
tree | 1f362de7f63cf7c4ced77a3b8152ec81b7412691 /include | |
parent | 4ebf543b933d282f51b6f00d02db7f7b52d56575 (diff) | |
download | llvm-fcba9c56a25edc71e32a407dfd6191de6dba0ed7.tar.gz llvm-fcba9c56a25edc71e32a407dfd6191de6dba0ed7.tar.bz2 llvm-fcba9c56a25edc71e32a407dfd6191de6dba0ed7.tar.xz |
Replace use of PathV1.h in Program.cpp.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183996 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 570b34b6b2..f84c142aa1 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -342,6 +342,12 @@ inline bool exists(const Twine &path) { return !exists(path, result) && result; } +/// @brief Can we execute this file? +/// +/// @param Path Input path. +/// @returns True if we can execute it, false otherwise. +bool can_execute(const Twine &Path); + /// @brief Do file_status's represent the same thing? /// /// @param A Input file_status. |