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 | 49eb628c21b358380b76df82aa3dfe0baab4c6ec (patch) | |
tree | 29d69b3d5f7545a0dc7def41118e59b1dd28036b /include/llvm/Analysis | |
parent | f7e78487de159940e00e3fadaf6b2e023e2ad8fe (diff) |
moves doInitialization and doFinalization to the Pass class and removes some unreachable code in MachineModuleInfo
reviewed by Evan Cheng <evan.cheng@apple.com>
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169164 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 3 | ||||
-rw-r--r-- | include/llvm/Analysis/RegionPass.h | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index c9770a7e45..4c16daffc0 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -39,6 +39,9 @@ public: // whatever action is necessary for the specified Loop. virtual bool runOnLoop(Loop *L, LPPassManager &LPM) = 0; + using llvm::Pass::doInitialization; + using llvm::Pass::doFinalization; + // Initialization and finalization hooks. virtual bool doInitialization(Loop *L, LPPassManager &LPM) { return false; diff --git a/include/llvm/Analysis/RegionPass.h b/include/llvm/Analysis/RegionPass.h index 6ed12e5db5..7d450887f0 100644 --- a/include/llvm/Analysis/RegionPass.h +++ b/include/llvm/Analysis/RegionPass.h @@ -57,6 +57,9 @@ public: /// @return The pass to print the LLVM IR in the region. Pass *createPrinterPass(raw_ostream &O, const std::string &Banner) const; + using llvm::Pass::doInitialization; + using llvm::Pass::doFinalization; + virtual bool doInitialization(Region *R, RGPassManager &RGM) { return false; } virtual bool doFinalization() { return false; } //@} |