mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-21 19:32:16 +00:00
ModulePass and ImmutablePass. Force out of line virtual method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32748 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
40bf725ef1
commit
c7d0f4be88
@ -205,6 +205,9 @@ public:
|
|||||||
|
|
||||||
#ifdef USE_OLD_PASSMANAGER
|
#ifdef USE_OLD_PASSMANAGER
|
||||||
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
|
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
|
||||||
|
#else
|
||||||
|
// Force out-of-line virtual method.
|
||||||
|
virtual ~ModulePass();
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -233,6 +236,9 @@ private:
|
|||||||
template<typename Trait> friend class PassManagerT;
|
template<typename Trait> friend class PassManagerT;
|
||||||
friend class ModulePassManager;
|
friend class ModulePassManager;
|
||||||
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
|
virtual void addToPassManager(ModulePassManager *PM, AnalysisUsage &AU);
|
||||||
|
#else
|
||||||
|
// Force out-of-line virtual method.
|
||||||
|
virtual ~ImmutablePass();
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -171,6 +171,9 @@ void PMDebug::PrintAnalysisSetInfo(unsigned Depth, const char *Msg,
|
|||||||
void ModulePass::addToPassManager(ModulePassManager *PM, AnalysisUsage &AU) {
|
void ModulePass::addToPassManager(ModulePassManager *PM, AnalysisUsage &AU) {
|
||||||
PM->addPass(this, AU);
|
PM->addPass(this, AU);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// Force out-of-line virtual method.
|
||||||
|
ModulePass::~ModulePass() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
bool Pass::mustPreserveAnalysisID(const PassInfo *AnalysisID) const {
|
bool Pass::mustPreserveAnalysisID(const PassInfo *AnalysisID) const {
|
||||||
@ -215,6 +218,9 @@ void ImmutablePass::addToPassManager(ModulePassManager *PM,
|
|||||||
AnalysisUsage &AU) {
|
AnalysisUsage &AU) {
|
||||||
PM->addPass(this, AU);
|
PM->addPass(this, AU);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
// Force out-of-line virtual method.
|
||||||
|
ImmutablePass::~ImmutablePass() { }
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user