summaryrefslogtreecommitdiffstats
path: root/llvm/tools/bugpoint/Miscompilation.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-17 23:03:16 +0000
committerChris Lattner <sabre@nondot.org>2003-10-17 23:03:16 +0000
commit7d147aec11e2aa6c86295979ed6883c635731923 (patch)
treeceefce87e0c6beaeab9bbb97f14e74d4a6459eaa /llvm/tools/bugpoint/Miscompilation.cpp
parentbd85f45eda9b090fa27bdc8cfdabeaae8847da61 (diff)
downloadbcm5719-llvm-7d147aec11e2aa6c86295979ed6883c635731923.tar.gz
bcm5719-llvm-7d147aec11e2aa6c86295979ed6883c635731923.zip
Be more helpful if a pass fails while chasing down a miscompilation
llvm-svn: 9214
Diffstat (limited to 'llvm/tools/bugpoint/Miscompilation.cpp')
-rw-r--r--llvm/tools/bugpoint/Miscompilation.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/tools/bugpoint/Miscompilation.cpp b/llvm/tools/bugpoint/Miscompilation.cpp
index 2ede067b1e0..0e350d24dbf 100644
--- a/llvm/tools/bugpoint/Miscompilation.cpp
+++ b/llvm/tools/bugpoint/Miscompilation.cpp
@@ -57,8 +57,10 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
// prefix passes, then discard the prefix passes.
//
if (BD.runPasses(Prefix, 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(Prefix);
+ BD.EmitProgressBytecode("pass-error", false);
exit(1);
}
@@ -88,8 +90,10 @@ ReduceMiscompilingPasses::doTest(std::vector<const PassInfo*> &Prefix,
Module *OriginalInput = BD.Program;
BD.Program = PrefixOutput;
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(Prefix);
+ BD.EmitProgressBytecode("pass-error", false);
exit(1);
}
OpenPOWER on IntegriCloud