aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Transforms/Pass.h')
-rw-r--r--include/llvm/Transforms/Pass.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/include/llvm/Transforms/Pass.h b/include/llvm/Transforms/Pass.h
index c6ba84ec5d..f7cc17cca8 100644
--- a/include/llvm/Transforms/Pass.h
+++ b/include/llvm/Transforms/Pass.h
@@ -113,15 +113,13 @@ struct Pass {
//===----------------------------------------------------------------------===//
-// ConcretePass<t> class - This is used by implementations of passes to fill in
-// boiler plate code. SubClass should be a concrete class that is derived from
-// ConcretePass.
+// ConcretePass class - This is used by implementations of passes to fill in
+// boiler plate code.
//
// Deriving from this class is good because if new methods are added in the
// future, code for your pass won't have to change to stub out the unused
// functionality.
//
-template<class SubClass>
struct ConcretePass : public Pass {
// doPassInitializationVirt - Default to success.
@@ -143,7 +141,7 @@ struct ConcretePass : public Pass {
// SubClass should be a concrete class that is derived from StatelessPass.
//
template<class SubClass>
-struct StatelessPass : public ConcretePass<SubClass> {
+struct StatelessPass : public ConcretePass {
//===--------------------------------------------------------------------===//
// The externally useful entry points - These are specialized to avoid the