From 023fcf977660e686e04f5bef0e2a7321db47df7e Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Mon, 21 Aug 2006 02:04:43 +0000 Subject: 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29785 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/bugpoint/OptimizerDriver.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/bugpoint/OptimizerDriver.cpp') diff --git a/tools/bugpoint/OptimizerDriver.cpp b/tools/bugpoint/OptimizerDriver.cpp index df4f470da2..0ac514bbef 100644 --- a/tools/bugpoint/OptimizerDriver.cpp +++ b/tools/bugpoint/OptimizerDriver.cpp @@ -194,6 +194,8 @@ bool BugDriver::runPasses(const std::vector &Passes, 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) -- cgit v1.2.3