More cleanups

llvm-svn: 9215
This commit is contained in:
Chris Lattner 2003-10-17 23:07:47 +00:00
parent 7d147aec11
commit 92a9f7adc4
1 changed files with 7 additions and 3 deletions

View File

@ -31,8 +31,10 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
std::string BytecodeResult;
if (BD.runPasses(Suffix, BytecodeResult, false/*delete*/, true/*quiet*/)) {
std::cerr << BD.getToolName() << ": Error running this sequence of passes"
std::cerr << ": Error running this sequence of passes"
<< " on the input program!\n";
BD.setPassesToRun(Suffix);
BD.EmitProgressBytecode("pass-error", false);
exit(1);
}
@ -92,7 +94,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
if (BD.runPasses(Suffix, BytecodeResult, false/*delete*/, true/*quiet*/)) {
std::cerr << ": Error running this sequence of passes"
<< " on the input program!\n";
BD.setPassesToRun(Prefix);
BD.setPassesToRun(Suffix);
BD.EmitProgressBytecode("pass-error", false);
exit(1);
}
@ -205,8 +207,10 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs,
std::string BytecodeResult;
if (BD.runPasses(BD.PassesToRun, BytecodeResult, false/*delete*/,
true/*quiet*/)) {
std::cerr << BD.getToolName() << ": Error running this sequence of passes"
std::cerr << ": Error running this sequence of passes"
<< " on the input program!\n";
BD.setPassesToRun(Suffix);
BD.EmitProgressBytecode("pass-error", false);
exit(1);
}