mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +00:00
Do not derive CommonPassManagerImpl from Pass.
Now BasicBlockPassManager_New is a FunctionPass, FunctionPassManager_New is a ModulePass git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31744 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -24,7 +24,7 @@ namespace llvm {
|
|||||||
/// CommonPassManagerImpl helps pass manager analysis required by
|
/// CommonPassManagerImpl helps pass manager analysis required by
|
||||||
/// the managed passes. It provides methods to add/remove analysis
|
/// the managed passes. It provides methods to add/remove analysis
|
||||||
/// available and query if certain analysis is available or not.
|
/// available and query if certain analysis is available or not.
|
||||||
class CommonPassManagerImpl : public Pass {
|
class CommonPassManagerImpl {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
@ -124,7 +124,8 @@ private:
|
|||||||
/// BasicBlockPassManager_New manages BasicBlockPass. It batches all the
|
/// BasicBlockPassManager_New manages BasicBlockPass. It batches all the
|
||||||
/// pass together and sequence them to process one basic block before
|
/// pass together and sequence them to process one basic block before
|
||||||
/// processing next basic block.
|
/// processing next basic block.
|
||||||
class BasicBlockPassManager_New : public CommonPassManagerImpl {
|
class BasicBlockPassManager_New : public CommonPassManagerImpl,
|
||||||
|
public FunctionPass {
|
||||||
|
|
||||||
public:
|
public:
|
||||||
BasicBlockPassManager_New() { }
|
BasicBlockPassManager_New() { }
|
||||||
@ -146,7 +147,8 @@ private:
|
|||||||
/// It batches all function passes and basic block pass managers together and
|
/// It batches all function passes and basic block pass managers together and
|
||||||
/// sequence them to process one function at a time before processing next
|
/// sequence them to process one function at a time before processing next
|
||||||
/// function.
|
/// function.
|
||||||
class FunctionPassManagerImpl_New : public CommonPassManagerImpl {
|
class FunctionPassManagerImpl_New : public CommonPassManagerImpl,
|
||||||
|
public ModulePass {
|
||||||
public:
|
public:
|
||||||
FunctionPassManagerImpl_New(ModuleProvider *P) { /* TODO */ }
|
FunctionPassManagerImpl_New(ModuleProvider *P) { /* TODO */ }
|
||||||
FunctionPassManagerImpl_New() {
|
FunctionPassManagerImpl_New() {
|
||||||
|
Reference in New Issue
Block a user