summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-17 23:07:47 +0000
committerChris Lattner <sabre@nondot.org>2003-10-17 23:07:47 +0000
commit5ef681c19de9c675a265211f8fb0ae49cc3a3a66 (patch)
tree40d18979e73b5c3352ed30d3b95d2e76c5783bdf /tools
parent9c6cfe1bffd37f29a265457b7515839c445b3e6a (diff)
downloadllvm-5ef681c19de9c675a265211f8fb0ae49cc3a3a66.tar.gz
llvm-5ef681c19de9c675a265211f8fb0ae49cc3a3a66.tar.bz2
llvm-5ef681c19de9c675a265211f8fb0ae49cc3a3a66.tar.xz
More cleanups
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9215 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/bugpoint/Miscompilation.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/bugpoint/Miscompilation.cpp b/tools/bugpoint/Miscompilation.cpp
index 0e350d24db..95fd7d6538 100644
--- a/tools/bugpoint/Miscompilation.cpp
+++ b/tools/bugpoint/Miscompilation.cpp
@@ -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);
}