summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-12-22 22:49:00 +0000
committerDevang Patel <dpatel@apple.com>2006-12-22 22:49:00 +0000
commitf5a994e5cc41e38a4a11b5fe6d1e4132ee98b962 (patch)
treeb7798c4103e4387cf10ce8ef1a9c27129788a136 /llvm
parent70e09a21482b3733323b4e4d17defa0095bdf09a (diff)
downloadbcm5719-llvm-f5a994e5cc41e38a4a11b5fe6d1e4132ee98b962.tar.gz
bcm5719-llvm-f5a994e5cc41e38a4a11b5fe6d1e4132ee98b962.zip
ModulePass and ImmutablePass. Force out of line virtual method.
llvm-svn: 32748
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Pass.h6
-rw-r--r--llvm/lib/VMCore/Pass.cpp6
2 files changed, 12 insertions, 0 deletions
diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h
index 9663826ccf6..a5c1c61c4bf 100644
--- a/llvm/include/llvm/Pass.h
+++ b/llvm/include/llvm/Pass.h
@@ -205,6 +205,9 @@ public:
#ifdef USE_OLD_PASSMANAGER
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
+#else
+ // Force out-of-line virtual method.
+ virtual ~ModulePass();
#endif
};
@@ -233,6 +236,9 @@ private:
template<typename Trait> friend class PassManagerT;
friend class ModulePassManager;
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
+#else
+ // Force out-of-line virtual method.
+ virtual ~ImmutablePass();
#endif
};
diff --git a/llvm/lib/VMCore/Pass.cpp b/llvm/lib/VMCore/Pass.cpp
index 8c5a2f760eb..a3c3d7aa818 100644
--- a/llvm/lib/VMCore/Pass.cpp
+++ b/llvm/lib/VMCore/Pass.cpp
@@ -171,6 +171,9 @@ void PMDebug::PrintAnalysisSetInfo(unsigned Depth, const char *Msg,
void ModulePass::addToPassManager(ModulePassManager *PM, AnalysisUsage &AU) {
PM->addPass(this, AU);
}
+#else
+// Force out-of-line virtual method.
+ModulePass::~ModulePass() { }
#endif
bool Pass::mustPreserveAnalysisID(const PassInfo *AnalysisID) const {
@@ -215,6 +218,9 @@ void ImmutablePass::addToPassManager(ModulePassManager *PM,
AnalysisUsage &AU) {
PM->addPass(this, AU);
}
+#else
+// Force out-of-line virtual method.
+ImmutablePass::~ImmutablePass() { }
#endif
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud