diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2008-10-26 23:59:36 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2008-10-26 23:59:36 +0000 |
commit | 33b1c30b0be49d09e57630abd2535c9aaeaf8636 (patch) | |
tree | 4e2dcde065072a843980bb6d7862c07b410f06c6 /tools/bugpoint/ExecutionDriver.cpp | |
parent | f61ca1eeda9cf2427047d83febe6fac1fbb1e84e (diff) |
Remove -check-exit-code from bugpoint. This is subsumed by -append-exit-code.
Note that -check-exit-code was on by default while -append-exit-code is not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58221 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | tools/bugpoint/ExecutionDriver.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/bugpoint/ExecutionDriver.cpp b/tools/bugpoint/ExecutionDriver.cpp index 96341116fc..821b842689 100644 --- a/tools/bugpoint/ExecutionDriver.cpp +++ b/tools/bugpoint/ExecutionDriver.cpp @@ -55,11 +55,6 @@ namespace { cl::init(AutoPick)); cl::opt<bool> - CheckProgramExitCode("check-exit-code", - cl::desc("Assume nonzero exit code is failure (default on)"), - cl::init(true)); - - cl::opt<bool> AppendProgramExitCode("append-exit-code", cl::desc("Append the exit code to the output so it gets diff'd too"), cl::init(false)); @@ -317,12 +312,6 @@ std::string BugDriver::executeProgramWithCBE(std::string OutputFile) { bool ProgramExitedNonzero; std::string outFN = executeProgram(OutputFile, "", "", cbe, &ProgramExitedNonzero); - if (ProgramExitedNonzero) { - std::cerr - << "Warning: While generating reference output, program exited with\n" - << "non-zero exit code. This will NOT be treated as a failure.\n"; - CheckProgramExitCode = false; - } return outFN; } @@ -384,14 +373,6 @@ bool BugDriver::diffProgram(const std::string &BitcodeFile, sys::Path Output(executeProgram("", BitcodeFile, SharedObject, 0, &ProgramExitedNonzero)); - // If we're checking the program exit code, assume anything nonzero is bad. - if (CheckProgramExitCode && ProgramExitedNonzero) { - Output.eraseFromDisk(); - if (RemoveBitcode) - sys::Path(BitcodeFile).eraseFromDisk(); - return true; - } - std::string Error; bool FilesDifferent = false; if (int Diff = DiffFilesWithTolerance(sys::Path(ReferenceOutputFile), |