summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/PassManager.cpp
diff options
context:
space:
mode:
authorPedro Artigas <partigas@apple.com>2012-12-03 21:56:57 +0000
committerPedro Artigas <partigas@apple.com>2012-12-03 21:56:57 +0000
commite4348b0412be4d65074ff3583a9de5587ef0c5f8 (patch)
tree83f3839047dc6cbb0b6c6e77b41304c4176525de /llvm/lib/VMCore/PassManager.cpp
parent8c114534ffb67f7bf80199f0ea39a075f7e86a12 (diff)
downloadbcm5719-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.cpp6
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();
OpenPOWER on IntegriCloud