diff options
Diffstat (limited to 'llvm/tools/bugpoint/ExecutionDriver.cpp')
-rw-r--r-- | llvm/tools/bugpoint/ExecutionDriver.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/llvm/tools/bugpoint/ExecutionDriver.cpp b/llvm/tools/bugpoint/ExecutionDriver.cpp index 96341116fcc..821b842689e 100644 --- a/llvm/tools/bugpoint/ExecutionDriver.cpp +++ b/llvm/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), |