Move private helper function into the only .cpp file that uses it.
authorChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 23:14:06 +0000 (23:14 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 13 Feb 2005 23:14:06 +0000 (23:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20169 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/SystemUtils.h

index e323448d5ba89e3848b0eeedb88323bad266ff58..09e1549b6a50858eb624d05df005f11cd04ff86c 100644 (file)
@@ -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