mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
For PR351:
* isExecutable -> sys::Path::executable() * Adjust interface of FindExecutable to return a sys::Path llvm-svn: 18917
This commit is contained in:
parent
89414d8039
commit
a0f6155809
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user