[llvm-commits] CVS: llvm/include/llvm/Pass.h

Chris Lattner lattner at cs.uiuc.edu
Sun Aug 27 17:09:14 PDT 2006



Changes in directory llvm/include/llvm:

Pass.h updated: 1.53 -> 1.54
---
Log message:

Silence -Woverloaded-virtual warnings.


---
Diffs of the changes:  (+4 -1)

 Pass.h |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.53 llvm/include/llvm/Pass.h:1.54
--- llvm/include/llvm/Pass.h:1.53	Wed Jan  4 11:21:23 2006
+++ llvm/include/llvm/Pass.h	Sun Aug 27 19:09:00 2006
@@ -290,7 +290,7 @@
   ///
   bool run(Function &F);
 
-private:
+protected:
   template<typename Trait> friend class PassManagerT;
   friend class ModulePassManager;
   friend class FunctionPassManagerT;
@@ -354,6 +354,9 @@
   template<typename Trait> friend class PassManagerT;
   friend class FunctionPassManagerT;
   friend class BasicBlockPassManager;
+  virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU) {
+    FunctionPass::addToPassManager(PM, AU);
+  }
   virtual void addToPassManager(FunctionPassManagerT *PM, AnalysisUsage &AU);
   virtual void addToPassManager(BasicBlockPassManager *PM,AnalysisUsage &AU);
 };






More information about the llvm-commits mailing list