summaryrefslogtreecommitdiff
path: root/tools/bugpoint/bugpoint.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-07-20 01:19:58 +0000
committerOwen Anderson <resistor@mac.com>2010-07-20 01:19:58 +0000
commit8ba15cb7099d9eadcb345328228d77ffa5afa42d (patch)
tree48778ce4b577178912f4a72d48b761056aae92ae /tools/bugpoint/bugpoint.cpp
parentfb272ad614e923bebdf226ff9d3fbce5e2ae1192 (diff)
downloadllvm-8ba15cb7099d9eadcb345328228d77ffa5afa42d.tar.gz
llvm-8ba15cb7099d9eadcb345328228d77ffa5afa42d.tar.bz2
llvm-8ba15cb7099d9eadcb345328228d77ffa5afa42d.tar.xz
Separate PassInfo into two classes: a constructor-free superclass (StaticPassInfo) and a constructor-ful subclass (PassInfo).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108794 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/bugpoint/bugpoint.cpp')
-rw-r--r--tools/bugpoint/bugpoint.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bugpoint/bugpoint.cpp b/tools/bugpoint/bugpoint.cpp
index ba5234bdc8..d4951adc6e 100644
--- a/tools/bugpoint/bugpoint.cpp
+++ b/tools/bugpoint/bugpoint.cpp
@@ -61,7 +61,7 @@ UseValgrind("enable-valgrind",
// The AnalysesList is automatically populated with registered Passes by the
// PassNameParser.
//
-static cl::list<const PassInfo*, bool, PassNameParser>
+static cl::list<const StaticPassInfo*, bool, PassNameParser>
PassList(cl::desc("Passes available:"), cl::ZeroOrMore);
static cl::opt<bool>
@@ -90,7 +90,7 @@ namespace {
AddToDriver(BugDriver &_D) : D(_D) {}
virtual void add(Pass *P) {
- const PassInfo *PI = P->getPassInfo();
+ const StaticPassInfo *PI = P->getPassInfo();
D.addPasses(&PI, &PI + 1);
}
};