Changes in directory llvm/tools/bugpoint:
OptimizerDriver.cpp updated: 1.40 -> 1.41 ToolRunner.cpp updated: 1.54 -> 1.55 --- 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: (+3 -1) OptimizerDriver.cpp | 2 ++ ToolRunner.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) Index: llvm/tools/bugpoint/OptimizerDriver.cpp diff -u llvm/tools/bugpoint/OptimizerDriver.cpp:1.40 llvm/tools/bugpoint/OptimizerDriver.cpp:1.41 --- llvm/tools/bugpoint/OptimizerDriver.cpp:1.40 Fri Jun 16 13:23:48 2006 +++ llvm/tools/bugpoint/OptimizerDriver.cpp Sun Aug 20 21:04:43 2006 @@ -194,6 +194,8 @@ std::cout << "Success!\n"; else if (result > 0) std::cout << "Exited with error code '" << result << "'\n"; + else if (result == -9999) + std::cout << "Program not executable\n"; else if (result < 0) std::cout << "Crashed with signal #" << abs(result) << "\n"; if (result & 0x01000000) Index: llvm/tools/bugpoint/ToolRunner.cpp diff -u llvm/tools/bugpoint/ToolRunner.cpp:1.54 llvm/tools/bugpoint/ToolRunner.cpp:1.55 --- llvm/tools/bugpoint/ToolRunner.cpp:1.54 Tue Jun 27 15:35:36 2006 +++ llvm/tools/bugpoint/ToolRunner.cpp Sun Aug 20 21:04:43 2006 @@ -55,7 +55,7 @@ sys::Path ErrorFilename("error_messages"); ErrorFilename.makeUnique(); RunProgramWithTimeout(ProgPath, Args, sys::Path(""), ErrorFilename, - ErrorFilename); + ErrorFilename); // FIXME: check return code // Print out the error messages generated by GCC if possible... std::ifstream ErrorFile(ErrorFilename.c_str()); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits