diff options
| author | Pedro Artigas <partigas@apple.com> | 2012-12-03 21:56:57 +0000 |
|---|---|---|
| committer | Pedro Artigas <partigas@apple.com> | 2012-12-03 21:56:57 +0000 |
| commit | e4348b0412be4d65074ff3583a9de5587ef0c5f8 (patch) | |
| tree | 83f3839047dc6cbb0b6c6e77b41304c4176525de /llvm/lib/VMCore/PassManager.cpp | |
| parent | 8c114534ffb67f7bf80199f0ea39a075f7e86a12 (diff) | |
| download | bcm5719-llvm-e4348b0412be4d65074ff3583a9de5587ef0c5f8.tar.gz bcm5719-llvm-e4348b0412be4d65074ff3583a9de5587ef0c5f8.zip | |
moves doInitialization and doFinalization to the Pass class and removes some unreachable code in MachineModuleInfo
reviewed by Evan Cheng <evan.cheng@apple.com>
llvm-svn: 169164
Diffstat (limited to 'llvm/lib/VMCore/PassManager.cpp')
| -rw-r--r-- | llvm/lib/VMCore/PassManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index 069bd356ad7..875ab5cad7d 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/lib/VMCore/PassManager.cpp @@ -309,6 +309,9 @@ public: /// whether any of the passes modifies the module, and if so, return true. bool runOnModule(Module &M); + using llvm::Pass::doInitialization; + using llvm::Pass::doFinalization; + /// doInitialization - Run all of the initializers for the module passes. /// bool doInitialization(); @@ -402,6 +405,9 @@ public: /// whether any of the passes modifies the module, and if so, return true. bool run(Module &M); + using llvm::Pass::doInitialization; + using llvm::Pass::doFinalization; + /// doInitialization - Run all of the initializers for the module passes. /// bool doInitialization(); |

