summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/BugDriver.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2004-02-11 18:37:32 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2004-02-11 18:37:32 +0000
commit35145beb6186036e8e3102d7cec94e92952d1694 (patch)
tree5a23d5a2dc219768bc3708496f4a90914a1a78a4 /llvm/tools/bugpoint/BugDriver.h
parentf10f6b10f9833c9e7b28ede78ccd073e06da28f0 (diff)
downloadbcm5719-llvm-35145beb6186036e8e3102d7cec94e92952d1694.tar.gz
bcm5719-llvm-35145beb6186036e8e3102d7cec94e92952d1694.zip
Add check-exit-code option, defaulting to true.
Add ProgramExitedNonzero argument to executeProgram(), and make it tell its caller whether the program exited nonzero. Move executeProgramWithCBE() out of line, to ExecutionDriver.cpp, and remove its extra arguments which are always defaulted. Make it turn off check-exit-code if the program exits nonzero while generating a reference output. Make diffProgram() assume that any nonzero exit code is a failure, if check-exit-code is turned on. llvm-svn: 11325
Diffstat (limited to 'llvm/tools/bugpoint/BugDriver.h')
-rw-r--r--llvm/tools/bugpoint/BugDriver.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/llvm/tools/bugpoint/BugDriver.h b/llvm/tools/bugpoint/BugDriver.h
index af04a7d61a8..354fae54c64 100644
--- a/llvm/tools/bugpoint/BugDriver.h
+++ b/llvm/tools/bugpoint/BugDriver.h
@@ -178,17 +178,13 @@ private:
std::string executeProgram(std::string RequestedOutputFilename = "",
std::string Bytecode = "",
const std::string &SharedObjects = "",
- AbstractInterpreter *AI = 0);
+ AbstractInterpreter *AI = 0,
+ bool *ProgramExitedNonzero = 0);
/// executeProgramWithCBE - Used to create reference output with the C
/// backend, if reference output is not provided.
///
- std::string executeProgramWithCBE(std::string OutputFile = "",
- std::string BytecodeFile = "",
- const std::string &SharedObj = "") {
- return executeProgram(OutputFile, BytecodeFile, SharedObj,
- (AbstractInterpreter*)cbe);
- }
+ std::string executeProgramWithCBE(std::string OutputFile = "");
/// diffProgram - This method executes the specified module and diffs the
/// output against the file specified by ReferenceOutputFile. If the output
OpenPOWER on IntegriCloud