Apply feedback from Chris.

llvm-svn: 19432
This commit is contained in:
Jeff Cohen 2005-01-10 04:23:32 +00:00
parent 703f7db254
commit 3e62e7c68b
2 changed files with 5 additions and 4 deletions

View 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.

View 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();
}