From: Chris Lattner Date: Sun, 13 Feb 2005 23:14:06 +0000 (+0000) Subject: Move private helper function into the only .cpp file that uses it. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0c09e5fb91feae42f437d632abf8a42da27fc1d2;p=oota-llvm.git 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 --- diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h index e323448d5ba..09e1549b6a5 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