mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-02 10:33:53 +00:00
Implement FunctionPassManager_New::FunctionPassManager_New(ModuleProvider *P)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32368 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6b6b6f6ab8
commit
cc132cd9fe
@ -119,7 +119,7 @@ private:
|
||||
/// FunctionPassManager_New manages FunctionPasses and BasicBlockPassManagers.
|
||||
class FunctionPassManager_New {
|
||||
public:
|
||||
FunctionPassManager_New(ModuleProvider *P) { /* TODO */ }
|
||||
FunctionPassManager_New(ModuleProvider *P);
|
||||
FunctionPassManager_New();
|
||||
~FunctionPassManager_New() { /* TODO */ };
|
||||
|
||||
|
@ -734,6 +734,11 @@ FunctionPassManager_New::FunctionPassManager_New() {
|
||||
FPM = new FunctionPassManagerImpl_New(0);
|
||||
}
|
||||
|
||||
FunctionPassManager_New::FunctionPassManager_New(ModuleProvider *P) {
|
||||
FPM = new FunctionPassManagerImpl_New(0);
|
||||
MP = P;
|
||||
}
|
||||
|
||||
/// add - Add a pass to the queue of passes to run. This passes
|
||||
/// ownership of the Pass to the PassManager. When the
|
||||
/// PassManager_X is destroyed, the pass will be destroyed as well, so
|
||||
|
Loading…
x
Reference in New Issue
Block a user