Silence -Woverloaded-virtual warnings.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29929 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-08-28 00:09:00 +00:00
parent c8603c2444
commit 6e60002a73
2 changed files with 15 additions and 2 deletions

View File

@ -290,7 +290,7 @@ public:
///
bool run(Function &F);
private:
protected:
template<typename Trait> friend class PassManagerT;
friend class ModulePassManager;
friend class FunctionPassManagerT;
@ -354,6 +354,9 @@ private:
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);
};

View File

@ -720,6 +720,10 @@ public:
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 @@ public:
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);
@ -832,6 +839,9 @@ public:
// 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);