summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/Unix
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-08-21 02:04:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-08-21 02:04:43 +0000
commitc295914b7ad5a4bd626e85ee4b3563c0e42a93be (patch)
tree91a8c8c846aafd23202bc11315cc42e0c6c78e8c /llvm/lib/System/Unix
parent756b0076e16b9b0b146640ec8d0ffe0efa8beb1c (diff)
downloadbcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.tar.gz
bcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.zip
For PR797:
Make sys::Program::ExecuteAndWait not throw exceptions and update any affected code. It now return -9999 to signal that the program couldn't be executed. Only one case (in bugpoint) actually examines the result code. llvm-svn: 29785
Diffstat (limited to 'llvm/lib/System/Unix')
-rw-r--r--llvm/lib/System/Unix/Program.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/System/Unix/Program.inc b/llvm/lib/System/Unix/Program.inc
index 1bf1bc91f81..c3d5d5ce6e5 100644
--- a/llvm/lib/System/Unix/Program.inc
+++ b/llvm/lib/System/Unix/Program.inc
@@ -108,7 +108,7 @@ Program::ExecuteAndWait(const Path& path,
unsigned secondsToWait
) {
if (!path.canExecute())
- throw path.toString() + " is not executable";
+ return -9999;
#ifdef HAVE_SYS_WAIT_H
// Create a child process.
OpenPOWER on IntegriCloud