diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-11 18:37:32 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-02-11 18:37:32 +0000 |
commit | c5cad211d6ec50fe90a0a716dee701c6c4721385 (patch) | |
tree | 74e5fae07eb9e8d07c82c01a77b0826e1942dde6 /tools/bugpoint/BugDriver.h | |
parent | 945871df86c4e5e0a12c58f6e12edbd09c813310 (diff) | |
download | external_llvm-c5cad211d6ec50fe90a0a716dee701c6c4721385.zip external_llvm-c5cad211d6ec50fe90a0a716dee701c6c4721385.tar.gz external_llvm-c5cad211d6ec50fe90a0a716dee701c6c4721385.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11325 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r-- | tools/bugpoint/BugDriver.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h index af04a7d..354fae5 100644 --- a/tools/bugpoint/BugDriver.h +++ b/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 |