aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/VMCore/PassManagerT.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/VMCore/PassManagerT.h b/lib/VMCore/PassManagerT.h
index 89ae00b137..88bedd27db 100644
--- a/lib/VMCore/PassManagerT.h
+++ b/lib/VMCore/PassManagerT.h
@@ -652,6 +652,8 @@ public:
// PMType - The type of the passmanager that subclasses this class
typedef PassManagerT<BasicBlock> PMType;
+ virtual ~BasicBlockPassManager() {}
+
// getPMName() - Return the name of the unit the PassManager operates on for
// debugging.
virtual const char *getPMName() const { return "BasicBlock"; }
@@ -719,6 +721,8 @@ public:
// PMType - The type of the passmanager that subclasses this class
typedef PassManagerT<Function> PMType;
+ virtual ~FunctionPassManagerT() {}
+
// getPMName() - Return the name of the unit the PassManager operates on for
// debugging.
virtual const char *getPMName() const { return "Function"; }
@@ -778,6 +782,8 @@ public:
// ParentClass - The type of the parent PassManager...
typedef AnalysisResolver ParentClass;
+ virtual ~ModulePassManager() {}
+
// getPMName() - Return the name of the unit the PassManager operates on for
// debugging.
virtual const char *getPassName() const { return "Module Pass Manager"; }