mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 01:43:06 +00:00
More cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9215 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9c6cfe1bff
commit
5ef681c19d
@ -31,8 +31,10 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
|
|||||||
|
|
||||||
std::string BytecodeResult;
|
std::string BytecodeResult;
|
||||||
if (BD.runPasses(Suffix, BytecodeResult, false/*delete*/, true/*quiet*/)) {
|
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";
|
<< " on the input program!\n";
|
||||||
|
BD.setPassesToRun(Suffix);
|
||||||
|
BD.EmitProgressBytecode("pass-error", false);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -92,7 +94,7 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
|
|||||||
if (BD.runPasses(Suffix, BytecodeResult, false/*delete*/, true/*quiet*/)) {
|
if (BD.runPasses(Suffix, BytecodeResult, false/*delete*/, true/*quiet*/)) {
|
||||||
std::cerr << ": Error running this sequence of passes"
|
std::cerr << ": Error running this sequence of passes"
|
||||||
<< " on the input program!\n";
|
<< " on the input program!\n";
|
||||||
BD.setPassesToRun(Prefix);
|
BD.setPassesToRun(Suffix);
|
||||||
BD.EmitProgressBytecode("pass-error", false);
|
BD.EmitProgressBytecode("pass-error", false);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
@ -205,8 +207,10 @@ bool ReduceMiscompilingFunctions::TestFuncs(const std::vector<Function*> &Funcs,
|
|||||||
std::string BytecodeResult;
|
std::string BytecodeResult;
|
||||||
if (BD.runPasses(BD.PassesToRun, BytecodeResult, false/*delete*/,
|
if (BD.runPasses(BD.PassesToRun, BytecodeResult, false/*delete*/,
|
||||||
true/*quiet*/)) {
|
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";
|
<< " on the input program!\n";
|
||||||
|
BD.setPassesToRun(Suffix);
|
||||||
|
BD.EmitProgressBytecode("pass-error", false);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user