diff options
Diffstat (limited to 'lib/VMCore/PassManager.cpp')
-rw-r--r-- | lib/VMCore/PassManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 45ffd42444..64585f9399 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -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 |