aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2013-03-26 23:35:00 +0000
committerChad Rosier <mcrosier@apple.com>2013-03-26 23:35:00 +0000
commit847e36fb60ed4c9fa08215df4fddbe085bbad87a (patch)
tree11f4d357ff712ca60be1cf7bd0a6d3dbce03f29b /include
parent39c41c3c93e0d223792acb093adce21a714b01c6 (diff)
downloadexternal_llvm-847e36fb60ed4c9fa08215df4fddbe085bbad87a.zip
external_llvm-847e36fb60ed4c9fa08215df4fddbe085bbad87a.tar.gz
external_llvm-847e36fb60ed4c9fa08215df4fddbe085bbad87a.tar.bz2
Add a boolean parameter to the ExecuteAndWait static function to indicated
if execution failed. ExecuteAndWait returns -1 upon an execution failure, but checking the return value isn't sufficient because the wait command may return -1 as well. This new parameter is to be used by the clang driver in a subsequent commit. Part of rdar://13362359 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178087 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/Program.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/Program.h b/include/llvm/Support/Program.h
index a0cc27c..bf65011 100644
--- a/include/llvm/Support/Program.h
+++ b/include/llvm/Support/Program.h
@@ -125,7 +125,8 @@ namespace sys {
const sys::Path** redirects = 0,
unsigned secondsToWait = 0,
unsigned memoryLimit = 0,
- std::string* ErrMsg = 0);
+ std::string* ErrMsg = 0,
+ bool *ExecutionFailed = 0);
/// A convenience function equivalent to Program prg; prg.Execute(..);
/// @see Execute