From 49eb628c21b358380b76df82aa3dfe0baab4c6ec Mon Sep 17 00:00:00 2001 From: Pedro Artigas Date: Mon, 3 Dec 2012 21:56:57 +0000 Subject: moves doInitialization and doFinalization to the Pass class and removes some unreachable code in MachineModuleInfo reviewed by Evan Cheng git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169164 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/PassManager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/VMCore/PassManager.cpp') diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 069bd356ad..875ab5cad7 100644 --- a/lib/VMCore/PassManager.cpp +++ b/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(); -- cgit v1.2.3-18-g5258