diff options
author | Devang Patel <dpatel@apple.com> | 2006-12-08 18:57:16 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-12-08 18:57:16 +0000 |
commit | cc132cd9feef765fe70284183c0f997b4faa5483 (patch) | |
tree | 30ae712881371a5229e8fb06f0e15146c1472113 | |
parent | 6b6b6f6ab8830027a872806b429c655c785dce79 (diff) | |
download | external_llvm-cc132cd9feef765fe70284183c0f997b4faa5483.zip external_llvm-cc132cd9feef765fe70284183c0f997b4faa5483.tar.gz external_llvm-cc132cd9feef765fe70284183c0f997b4faa5483.tar.bz2 |
Implement FunctionPassManager_New::FunctionPassManager_New(ModuleProvider *P)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32368 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/PassManager.h | 2 | ||||
-rw-r--r-- | lib/VMCore/PassManager.cpp | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h index f8ebd62..cd8e70b 100644 --- a/include/llvm/PassManager.h +++ b/include/llvm/PassManager.h @@ -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 */ }; diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 45ffd42..64585f9 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 |