Apply feedback from Chris.
authorJeff Cohen <jeffc@jolt-lang.org>
Mon, 10 Jan 2005 04:23:32 +0000 (04:23 +0000)
committerJeff Cohen <jeffc@jolt-lang.org>
Mon, 10 Jan 2005 04:23:32 +0000 (04:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19432 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/IPO.h
lib/Transforms/IPO/LoopExtractor.cpp

index d2371de5176515e5cfa5eacc793ea01fb234e9b2..a0515a7f5e0ff270c2e4d29e67f0dc586a52bcfd 100644 (file)
@@ -19,6 +19,7 @@
 
 namespace llvm {
 
+class FunctionPass;
 class ModulePass;
 class Function;
 class BasicBlock;
@@ -150,12 +151,12 @@ ModulePass *createIPSCCPPass();
 /// createLoopExtractorPass - This pass extracts all natural loops from the
 /// program into a function if it can.
 ///
-ModulePass *createLoopExtractorPass();
+FunctionPass *createLoopExtractorPass();
 
 /// createSingleLoopExtractorPass - This pass extracts one natural loop from the
 /// program into a function if it can.  This is used by bugpoint.
 ///
-ModulePass *createSingleLoopExtractorPass();
+FunctionPass *createSingleLoopExtractorPass();
 
 // createBlockExtractorPass - This pass extracts all blocks (except those
 // specified in the argument list) from the functions in the module.
index 638820e3986826d2729820c79b9e974aba79d8bf..4fd2335c2809aa09977676c091d8892f3344b4c2 100644 (file)
@@ -61,7 +61,7 @@ namespace {
 // createLoopExtractorPass - This pass extracts all natural loops from the
 // program into a function if it can.
 //
-ModulePass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
+FunctionPass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
 
 bool LoopExtractor::runOnFunction(Function &F) {
   LoopInfo &LI = getAnalysis<LoopInfo>();
@@ -131,7 +131,7 @@ bool LoopExtractor::runOnFunction(Function &F) {
 // createSingleLoopExtractorPass - This pass extracts one natural loop from the
 // program into a function if it can.  This is used by bugpoint.
 //
-ModulePass *llvm::createSingleLoopExtractorPass() {
+FunctionPass *llvm::createSingleLoopExtractorPass() {
   return new SingleLoopExtractor();
 }