diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-13 23:14:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-13 23:14:06 +0000 |
commit | 0c09e5fb91feae42f437d632abf8a42da27fc1d2 (patch) | |
tree | 0e1190175955d66f078c5c74b9900ffee7670e43 | |
parent | 45495c524841aa94107d5331f5522c5c6d2024cd (diff) |
Move private helper function into the only .cpp file that uses it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20169 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Support/SystemUtils.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index e323448d5b..09e1549b6a 100644 --- a/include/llvm/Support/SystemUtils.h +++ b/include/llvm/Support/SystemUtils.h @@ -37,24 +37,6 @@ bool CheckBytecodeOutputToConsole( sys::Path FindExecutable(const std::string &ExeName, const std::string &ProgramPath); -/// RunProgramWithTimeout - This function provides an alternate interface to the -/// sys::Program::ExecuteAndWait interface. -/// @see sys:Program::ExecuteAndWait -inline int RunProgramWithTimeout(const sys::Path &ProgramPath, - const char **Args, - const sys::Path &StdInFile, - const sys::Path &StdOutFile, - const sys::Path &StdErrFile, - unsigned NumSeconds = 0) { - const sys::Path* redirects[3]; - redirects[0] = &StdInFile; - redirects[1] = &StdOutFile; - redirects[2] = &StdErrFile; - - return - sys::Program::ExecuteAndWait(ProgramPath, Args, 0, redirects, NumSeconds); -} - } // End llvm namespace #endif |