summaryrefslogtreecommitdiff
path: root/tools/bugpoint/OptimizerDriver.cpp
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
commit023fcf977660e686e04f5bef0e2a7321db47df7e (patch)
tree21e3b0af2281c2ede5c731f98d5c6cb22dd135a6 /tools/bugpoint/OptimizerDriver.cpp
parent422fa625d9bdc37ebba9fc8ce16f141ffa80fc58 (diff)
downloadllvm-023fcf977660e686e04f5bef0e2a7321db47df7e.tar.gz
llvm-023fcf977660e686e04f5bef0e2a7321db47df7e.tar.bz2
llvm-023fcf977660e686e04f5bef0e2a7321db47df7e.tar.xz
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
Diffstat (limited to 'tools/bugpoint/OptimizerDriver.cpp')
-rw-r--r--tools/bugpoint/OptimizerDriver.cpp2
1 files changed, 2 insertions, 0 deletions
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<const PassInfo*> &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)