Make the create...() functions for some of these passes return a FunctionPass *.

llvm-svn: 15276
This commit is contained in:
Brian Gaeke 2004-07-27 17:43:21 +00:00
parent 9eaa879f49
commit 38b79e8fbc
5 changed files with 7 additions and 7 deletions

View File

@ -23,12 +23,12 @@
namespace llvm {
class Pass;
class FunctionPass;
/// createLoadValueNumberingPass - Create and return a new pass that implements
/// the ValueNumbering interface.
///
Pass *createLoadValueNumberingPass();
FunctionPass *createLoadValueNumberingPass();
} // End llvm namespace

View File

@ -61,7 +61,7 @@ Pass *createDeadInstEliminationPass();
// their other instructions become dead, to eliminate chains of dead
// computations.
//
Pass *createDeadCodeEliminationPass();
FunctionPass *createDeadCodeEliminationPass();
//===----------------------------------------------------------------------===//
//
@ -132,7 +132,7 @@ Pass *createIndVarSimplifyPass();
// into:
// %Z = add int 2, %X
//
Pass *createInstructionCombiningPass();
FunctionPass *createInstructionCombiningPass();
//===----------------------------------------------------------------------===//

View File

@ -87,7 +87,7 @@ namespace {
RegisterAnalysisGroup<ValueNumbering, LoadVN> Y;
}
Pass *llvm::createLoadValueNumberingPass() { return new LoadVN(); }
FunctionPass *llvm::createLoadValueNumberingPass() { return new LoadVN(); }
/// getAnalysisUsage - Does not modify anything. It uses Value Numbering and

View File

@ -123,7 +123,7 @@ bool DCE::runOnFunction(Function &F) {
return true;
}
Pass *llvm::createDeadCodeEliminationPass() {
FunctionPass *llvm::createDeadCodeEliminationPass() {
return new DCE();
}

View File

@ -3210,7 +3210,7 @@ bool InstCombiner::runOnFunction(Function &F) {
return Changed;
}
Pass *llvm::createInstructionCombiningPass() {
FunctionPass *llvm::createInstructionCombiningPass() {
return new InstCombiner();
}