/// FunctionPassManager_New manages FunctionPasses and BasicBlockPassManagers.
class FunctionPassManager_New {
public:
- FunctionPassManager_New(ModuleProvider *P) { /* TODO */ }
+ FunctionPassManager_New(ModuleProvider *P);
FunctionPassManager_New();
~FunctionPassManager_New() { /* TODO */ };
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