aboutsummaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-18 21:24:48 +0000
committerChris Lattner <sabre@nondot.org>2004-02-18 21:24:48 +0000
commit06905db7d2a2b83c1b3236d5552629ada2d8d56d (patch)
treea35eb44b9b64682fd9276db1677e2147ca2693c8 /tools/bugpoint/BugDriver.cpp
parent025262692a6710de29a48e2b3905672cd12d13d2 (diff)
Cleanup and simplify manipulation of the program, eliminate the need for so
many 'friends' of bugdriver. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.cpp')
-rw-r--r--tools/bugpoint/BugDriver.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/bugpoint/BugDriver.cpp b/tools/bugpoint/BugDriver.cpp
index 14e5606f6c..4359622777 100644
--- a/tools/bugpoint/BugDriver.cpp
+++ b/tools/bugpoint/BugDriver.cpp
@@ -38,6 +38,15 @@ namespace {
"(for miscompilation detection)"));
}
+/// setNewProgram - If we reduce or update the program somehow, call this method
+/// to update bugdriver with it. This deletes the old module and sets the
+/// specified one as the current program.
+void BugDriver::setNewProgram(Module *M) {
+ delete Program;
+ Program = M;
+}
+
+
/// getPassesString - Turn a list of passes into a string which indicates the
/// command line options that must be passed to add the passes.
///
@@ -174,7 +183,7 @@ bool BugDriver::run() {
return debugMiscompilation();
}
} catch (ToolExecutionError &TEE) {
- std::cerr << TEE.getMessage() << "*** Debugging code generator crash!\n";
+ std::cerr << TEE.getMessage();
return debugCodeGeneratorCrash();
}