summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Program.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2011-05-21 00:56:46 +0000
committerAndrew Trick <atrick@apple.com>2011-05-21 00:56:46 +0000
commitd5d0764b3b07a72cd370396332bbd382ebc876a4 (patch)
tree24eadd3c968f34cd7db69cc885027d16a0684d01 /llvm/lib/Support/Program.cpp
parent1c464d496168fb54fcd88f483921aeb40e94d8af (diff)
downloadbcm5719-llvm-d5d0764b3b07a72cd370396332bbd382ebc876a4.tar.gz
bcm5719-llvm-d5d0764b3b07a72cd370396332bbd382ebc876a4.zip
Have Program::Wait return -2 for crashed and timeouts instead of embedding
info in the error message. Per Dan's request. llvm-svn: 131780
Diffstat (limited to 'llvm/lib/Support/Program.cpp')
-rw-r--r--llvm/lib/Support/Program.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Program.cpp b/llvm/lib/Support/Program.cpp
index fa816f68c8a..01860b082d6 100644
--- a/llvm/lib/Support/Program.cpp
+++ b/llvm/lib/Support/Program.cpp
@@ -28,11 +28,10 @@ Program::ExecuteAndWait(const Path& path,
const Path** redirects,
unsigned secondsToWait,
unsigned memoryLimit,
- std::string* ErrMsg,
- const char* SignalPrefix) {
+ std::string* ErrMsg) {
Program prg;
if (prg.Execute(path, args, envp, redirects, memoryLimit, ErrMsg))
- return prg.Wait(path, secondsToWait, ErrMsg, SignalPrefix);
+ return prg.Wait(path, secondsToWait, ErrMsg);
else
return -1;
}
OpenPOWER on IntegriCloud