summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2004-12-13 23:40:08 +0000
committerReid Spencer <rspencer@reidspencer.com>2004-12-13 23:40:08 +0000
commit1749a0c1b9a17fd6b11fad2f6e6b66ab90eac4b4 (patch)
treea7862b6c316fba4ab9224fab7cbb342a416fd52b /include
parent90484fb9a2847a217f6dbd584cc9ddfcb8b5fa33 (diff)
downloadllvm-1749a0c1b9a17fd6b11fad2f6e6b66ab90eac4b4.tar.gz
llvm-1749a0c1b9a17fd6b11fad2f6e6b66ab90eac4b4.tar.bz2
llvm-1749a0c1b9a17fd6b11fad2f6e6b66ab90eac4b4.tar.xz
For PR351:
* isExecutable -> sys::Path::executable() * Adjust interface of FindExecutable to return a sys::Path git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18917 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/SystemUtils.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h
index e8ead132e9..126a54dbf8 100644
--- a/include/llvm/Support/SystemUtils.h
+++ b/include/llvm/Support/SystemUtils.h
@@ -15,15 +15,10 @@
#ifndef LLVM_SUPPORT_SYSTEMUTILS_H
#define LLVM_SUPPORT_SYSTEMUTILS_H
-#include <string>
+#include "llvm/System/Path.h"
namespace llvm {
-/// isExecutableFile - This function returns true if the filename specified
-/// exists and is executable.
-///
-bool isExecutableFile(const std::string &ExeFileName);
-
/// isStandardOutAConsole - Return true if we can tell that the standard output
/// stream goes to a terminal window or console.
bool isStandardOutAConsole();
@@ -33,7 +28,7 @@ bool isStandardOutAConsole();
/// the same directory, but that directory is neither the current directory, nor
/// in the PATH. If the executable cannot be found, return an empty string.
///
-std::string FindExecutable(const std::string &ExeName,
+sys::Path FindExecutable(const std::string &ExeName,
const std::string &ProgramPath);
/// RunProgramWithTimeout - This function executes the specified program, with