mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
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:
parent
c8603c2444
commit
6e60002a73
@ -290,7 +290,7 @@ public:
|
|||||||
///
|
///
|
||||||
bool run(Function &F);
|
bool run(Function &F);
|
||||||
|
|
||||||
private:
|
protected:
|
||||||
template<typename Trait> friend class PassManagerT;
|
template<typename Trait> friend class PassManagerT;
|
||||||
friend class ModulePassManager;
|
friend class ModulePassManager;
|
||||||
friend class FunctionPassManagerT;
|
friend class FunctionPassManagerT;
|
||||||
@ -354,6 +354,9 @@ private:
|
|||||||
template<typename Trait> friend class PassManagerT;
|
template<typename Trait> friend class PassManagerT;
|
||||||
friend class FunctionPassManagerT;
|
friend class FunctionPassManagerT;
|
||||||
friend class BasicBlockPassManager;
|
friend class BasicBlockPassManager;
|
||||||
|
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU) {
|
||||||
|
FunctionPass::addToPassManager(PM, AU);
|
||||||
|
}
|
||||||
virtual void addToPassManager(FunctionPassManagerT *PM, AnalysisUsage &AU);
|
virtual void addToPassManager(FunctionPassManagerT *PM, AnalysisUsage &AU);
|
||||||
virtual void addToPassManager(BasicBlockPassManager *PM,AnalysisUsage &AU);
|
virtual void addToPassManager(BasicBlockPassManager *PM,AnalysisUsage &AU);
|
||||||
};
|
};
|
||||||
|
@ -720,6 +720,10 @@ public:
|
|||||||
PassManagerT<BBTraits>(BBPM->Parent) {
|
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
|
// runPass - Specify how the pass should be run on the UnitType
|
||||||
virtual bool runPass(BBTraits::PassClass *P, BasicBlock *M) {
|
virtual bool runPass(BBTraits::PassClass *P, BasicBlock *M) {
|
||||||
// TODO: init and finalize
|
// TODO: init and finalize
|
||||||
@ -790,6 +794,9 @@ public:
|
|||||||
AU.setPreservesAll();
|
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
|
// runPass - Specify how the pass should be run on the UnitType
|
||||||
virtual bool runPass(FTraits::PassClass *P, Function *F) {
|
virtual bool runPass(FTraits::PassClass *P, Function *F) {
|
||||||
return P->runOnFunction(*F);
|
return P->runOnFunction(*F);
|
||||||
@ -831,7 +838,10 @@ public:
|
|||||||
|
|
||||||
// runOnModule - Implement the PassManager interface.
|
// runOnModule - Implement the PassManager interface.
|
||||||
virtual bool runOnModule(Module &M);
|
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
|
// runPass - Specify how the pass should be run on the UnitType
|
||||||
virtual bool runPass(MTraits::PassClass *P, Module *M) {
|
virtual bool runPass(MTraits::PassClass *P, Module *M) {
|
||||||
return P->runOnModule(*M);
|
return P->runOnModule(*M);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user