aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/SystemUtils.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-13 23:14:06 +0000
committerChris Lattner <sabre@nondot.org>2005-02-13 23:14:06 +0000
commit0c09e5fb91feae42f437d632abf8a42da27fc1d2 (patch)
tree0e1190175955d66f078c5c74b9900ffee7670e43 /include/llvm/Support/SystemUtils.h
parent45495c524841aa94107d5331f5522c5c6d2024cd (diff)
downloadexternal_llvm-0c09e5fb91feae42f437d632abf8a42da27fc1d2.zip
external_llvm-0c09e5fb91feae42f437d632abf8a42da27fc1d2.tar.gz
external_llvm-0c09e5fb91feae42f437d632abf8a42da27fc1d2.tar.bz2
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
Diffstat (limited to 'include/llvm/Support/SystemUtils.h')
-rw-r--r--include/llvm/Support/SystemUtils.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/llvm/Support/SystemUtils.h b/include/llvm/Support/SystemUtils.h
index e323448..09e1549 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