[llvm-commits] CVS: llvm/lib/System/Unix/Program.inc
Reid Spencer
reid at x10sys.com
Sun Aug 20 19:05:05 PDT 2006
Changes in directory llvm/lib/System/Unix:
Program.inc updated: 1.19 -> 1.20
---
Log message:
For PR797: http://llvm.org/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.
---
Diffs of the changes: (+1 -1)
Program.inc | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/lib/System/Unix/Program.inc
diff -u llvm/lib/System/Unix/Program.inc:1.19 llvm/lib/System/Unix/Program.inc:1.20
--- llvm/lib/System/Unix/Program.inc:1.19 Wed Jul 12 17:37:18 2006
+++ llvm/lib/System/Unix/Program.inc Sun Aug 20 21:04:43 2006
@@ -108,7 +108,7 @@
unsigned secondsToWait
) {
if (!path.canExecute())
- throw path.toString() + " is not executable";
+ return -9999;
#ifdef HAVE_SYS_WAIT_H
// Create a child process.
More information about the llvm-commits
mailing list