[llvm-commits] CVS: llvm/include/llvm/Support/SystemUtils.h
Reid Spencer
reid at x10sys.com
Mon Dec 13 15:40:19 PST 2004
Changes in directory llvm/include/llvm/Support:
SystemUtils.h updated: 1.14 -> 1.15
---
Log message:
For PR351: http://llvm.cs.uiuc.edu/PR351 :
* isExecutable -> sys::Path::executable()
* Adjust interface of FindExecutable to return a sys::Path
---
Diffs of the changes: (+2 -7)
Index: llvm/include/llvm/Support/SystemUtils.h
diff -u llvm/include/llvm/Support/SystemUtils.h:1.14 llvm/include/llvm/Support/SystemUtils.h:1.15
--- llvm/include/llvm/Support/SystemUtils.h:1.14 Mon Dec 13 14:14:30 2004
+++ llvm/include/llvm/Support/SystemUtils.h Mon Dec 13 17:40:08 2004
@@ -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 @@
/// 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
More information about the llvm-commits
mailing list