aboutsummaryrefslogtreecommitdiff
path: root/tools/bugpoint/BugDriver.h
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
commit9c6cfe1bffd37f29a265457b7515839c445b3e6a (patch)
treefcce3aa53e2df837e0357280dad1f1e3da1502f5 /tools/bugpoint/BugDriver.h
parent8ba67902ca116983c506271dfc0c441402b2cea8 (diff)
Be more helpful if a pass fails while chasing down a miscompilation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/BugDriver.h')
-rw-r--r--tools/bugpoint/BugDriver.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/bugpoint/BugDriver.h b/tools/bugpoint/BugDriver.h
index 532bbb5908..43edf5c264 100644
--- a/tools/bugpoint/BugDriver.h
+++ b/tools/bugpoint/BugDriver.h
@@ -57,6 +57,9 @@ public:
bool addSources(const std::vector<std::string> &FileNames);
template<class It>
void addPasses(It I, It E) { PassesToRun.insert(PassesToRun.end(), I, E); }
+ void setPassesToRun(const std::vector<const PassInfo*> &PTR) {
+ PassesToRun = PTR;
+ }
/// run - The top level method that is invoked after all of the instance
/// variables are set up from command line arguments.