diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 20:06:28 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-06-13 20:06:28 +0000 |
commit | a29ece1693ff16ff991e184f6e073c9fb30fcb4b (patch) | |
tree | 61dfe40d76d6cdc9c3184de83c6393111dc96c58 /include/llvm/Support/Program.h | |
parent | c06e5cf2e3724762a6c9830a00395736ec07d81a (diff) | |
download | external_llvm-a29ece1693ff16ff991e184f6e073c9fb30fcb4b.zip external_llvm-a29ece1693ff16ff991e184f6e073c9fb30fcb4b.tar.gz external_llvm-a29ece1693ff16ff991e184f6e073c9fb30fcb4b.tar.bz2 |
Add a version of sys::ExecuteAndWait that takes StringRefs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183934 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Program.h')
-rw-r--r-- | include/llvm/Support/Program.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h index 38fc8c2..c8729c7 100644 --- a/include/llvm/Support/Program.h +++ b/include/llvm/Support/Program.h @@ -80,6 +80,11 @@ namespace sys { ///< program. bool *ExecutionFailed = 0); + int ExecuteAndWait(StringRef path, const char **args, const char **env = 0, + const StringRef **redirects = 0, + unsigned secondsToWait = 0, unsigned memoryLimit = 0, + std::string *ErrMsg = 0, bool *ExecutionFailed = 0); + /// Similar to ExecuteAndWait, but return immediately. void ExecuteNoWait(const Path &path, const char **args, const char **env = 0, const sys::Path **redirects = 0, unsigned memoryLimit = 0, |