[llvm-commits] CVS: llvm/include/llvm/System/Program.h

Reid Spencer reid at x10sys.com
Sun Aug 20 19:05:00 PDT 2006



Changes in directory llvm/include/llvm/System:

Program.h updated: 1.11 -> 1.12
---
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:  (+2 -1)

 Program.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/System/Program.h
diff -u llvm/include/llvm/System/Program.h:1.11 llvm/include/llvm/System/Program.h:1.12
--- llvm/include/llvm/System/Program.h:1.11	Wed Jul 26 11:55:39 2006
+++ llvm/include/llvm/System/Program.h	Sun Aug 20 21:04:43 2006
@@ -49,7 +49,8 @@
       /// called then a std::string is thrown.
       /// @returns an integer result code indicating the status of the program.
       /// A zero or positive value indicates the result code of the program. A
-      /// negative value is the signal number on which it terminated.
+      /// negative value is the signal number on which it terminated. A value of
+      /// -9999 indicates the program could not be executed.
       /// @throws std::string on a variety of error conditions or if the invoked
       /// program aborted abnormally.
       /// @see FindProgrambyName






More information about the llvm-commits mailing list