[llvm-commits] CVS: llvm/lib/VMCore/Pass.cpp

Devang Patel dpatel at apple.com
Fri Dec 22 14:49:18 PST 2006



Changes in directory llvm/lib/VMCore:

Pass.cpp updated: 1.80 -> 1.81
---
Log message:

ModulePass and ImmutablePass. Force out of line virtual method.


---
Diffs of the changes:  (+6 -0)

 Pass.cpp |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/lib/VMCore/Pass.cpp
diff -u llvm/lib/VMCore/Pass.cpp:1.80 llvm/lib/VMCore/Pass.cpp:1.81
--- llvm/lib/VMCore/Pass.cpp:1.80	Wed Dec 13 15:13:31 2006
+++ llvm/lib/VMCore/Pass.cpp	Fri Dec 22 16:49:00 2006
@@ -171,6 +171,9 @@
 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 @@
                                      AnalysisUsage &AU) {
   PM->addPass(this, AU);
 }
+#else
+// Force out-of-line virtual method.
+ImmutablePass::~ImmutablePass() { }
 #endif
 
 //===----------------------------------------------------------------------===//






More information about the llvm-commits mailing list