summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/ToolRunner.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
commitc295914b7ad5a4bd626e85ee4b3563c0e42a93be (patch)
tree91a8c8c846aafd23202bc11315cc42e0c6c78e8c /llvm/tools/bugpoint/ToolRunner.cpp
parent756b0076e16b9b0b146640ec8d0ffe0efa8beb1c (diff)
downloadbcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.tar.gz
bcm5719-llvm-c295914b7ad5a4bd626e85ee4b3563c0e42a93be.zip
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. llvm-svn: 29785
Diffstat (limited to 'llvm/tools/bugpoint/ToolRunner.cpp')
-rw-r--r--llvm/tools/bugpoint/ToolRunner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/bugpoint/ToolRunner.cpp b/llvm/tools/bugpoint/ToolRunner.cpp
index 94cccf27741..067bf658c73 100644
--- a/llvm/tools/bugpoint/ToolRunner.cpp
+++ b/llvm/tools/bugpoint/ToolRunner.cpp
@@ -55,7 +55,7 @@ static void ProcessFailure(sys::Path ProgPath, const char** Args) {
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());
OpenPOWER on IntegriCloud