From fcba9c56a25edc71e32a407dfd6191de6dba0ed7 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Fri, 14 Jun 2013 19:38:45 +0000 Subject: 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 --- include/llvm/Support/FileSystem.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/llvm') 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. -- cgit v1.2.3