[llvm-commits] CVS: llvm/lib/VMCore/PassManagerT.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Aug 27 17:08:39 PDT 2006
Changes in directory llvm/lib/VMCore:
PassManagerT.h updated: 1.67 -> 1.68
---
Log message:
Silence -Woverloaded-virtual warnings.
---
Diffs of the changes: (+11 -1)
PassManagerT.h | 12 +++++++++++-
1 files changed, 11 insertions(+), 1 deletion(-)
Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.67 llvm/lib/VMCore/PassManagerT.h:1.68
--- llvm/lib/VMCore/PassManagerT.h:1.67 Thu Jan 12 10:48:23 2006
+++ llvm/lib/VMCore/PassManagerT.h Sun Aug 27 19:08:25 2006
@@ -720,6 +720,10 @@
PassManagerT<BBTraits>(BBPM->Parent) {
}
+ virtual bool runPass(Module &M) { return false; }
+
+ virtual bool runPass(BasicBlock &BB) { return BasicBlockPass::runPass(BB); }
+
// runPass - Specify how the pass should be run on the UnitType
virtual bool runPass(BBTraits::PassClass *P, BasicBlock *M) {
// TODO: init and finalize
@@ -790,6 +794,9 @@
AU.setPreservesAll();
}
+ virtual bool runPass(Module &M) { return FunctionPass::runPass(M); }
+ virtual bool runPass(BasicBlock &BB) { return FunctionPass::runPass(BB); }
+
// runPass - Specify how the pass should be run on the UnitType
virtual bool runPass(FTraits::PassClass *P, Function *F) {
return P->runOnFunction(*F);
@@ -831,7 +838,10 @@
// runOnModule - Implement the PassManager interface.
virtual bool runOnModule(Module &M);
-
+
+ virtual bool runPass(Module &M) { return ModulePass::runPass(M); }
+ virtual bool runPass(BasicBlock &BB) { return ModulePass::runPass(BB); }
+
// runPass - Specify how the pass should be run on the UnitType
virtual bool runPass(MTraits::PassClass *P, Module *M) {
return P->runOnModule(*M);
More information about the llvm-commits
mailing list