mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +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);
|
||||
|
||||
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);
|
||||
};
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user