diff options
author | Owen Anderson <resistor@mac.com> | 2010-07-21 22:09:45 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-07-21 22:09:45 +0000 |
commit | d13db2c59cc94162d6cf0a04187d408bfef6d4a7 (patch) | |
tree | 038f76abec58dcdf127487653ee3175dcbcc33d0 /lib/Transforms/IPO/LoopExtractor.cpp | |
parent | 07fdd897e2c4304b6f70345c488e97fd97374576 (diff) | |
download | llvm-d13db2c59cc94162d6cf0a04187d408bfef6d4a7.tar.gz llvm-d13db2c59cc94162d6cf0a04187d408bfef6d4a7.tar.bz2 llvm-d13db2c59cc94162d6cf0a04187d408bfef6d4a7.tar.xz |
Fix batch of converting RegisterPass<> to INTIALIZE_PASS().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r-- | lib/Transforms/IPO/LoopExtractor.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp index cb813303fa..fa8eb5e9fb 100644 --- a/lib/Transforms/IPO/LoopExtractor.cpp +++ b/lib/Transforms/IPO/LoopExtractor.cpp @@ -50,8 +50,8 @@ namespace { } char LoopExtractor::ID = 0; -static RegisterPass<LoopExtractor> -X("loop-extract", "Extract loops into new functions"); +INITIALIZE_PASS(LoopExtractor, "loop-extract", + "Extract loops into new functions", false, false); namespace { /// SingleLoopExtractor - For bugpoint. @@ -62,8 +62,8 @@ namespace { } // End anonymous namespace char SingleLoopExtractor::ID = 0; -static RegisterPass<SingleLoopExtractor> -Y("loop-extract-single", "Extract at most one loop into a new function"); +INITIALIZE_PASS(SingleLoopExtractor, "loop-extract-single", + "Extract at most one loop into a new function", false, false); // createLoopExtractorPass - This pass extracts all natural loops from the // program into a function if it can. @@ -159,8 +159,9 @@ namespace { } char BlockExtractorPass::ID = 0; -static RegisterPass<BlockExtractorPass> -XX("extract-blocks", "Extract Basic Blocks From Module (for bugpoint use)"); +INITIALIZE_PASS(BlockExtractorPass, "extract-blocks", + "Extract Basic Blocks From Module (for bugpoint use)", + false, false); // createBlockExtractorPass - This pass extracts all blocks (except those // specified in the argument list) from the functions in the module. |