Declare FunctionPasses as such so that they can be used in FunctionPassManager.
authorMisha Brukman <brukman+llvm@gmail.com>
Fri, 7 Nov 2003 17:20:18 +0000 (17:20 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Fri, 7 Nov 2003 17:20:18 +0000 (17:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9768 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GCSE.cpp
lib/Transforms/Scalar/LICM.cpp
lib/Transforms/Scalar/Reassociate.cpp

index caf68bc1c8def5b544bfeacff94e5bddfbe677f1..e1654e5d7f309d22f8c5af041aa762ff42620d91 100644 (file)
@@ -54,7 +54,7 @@ namespace {
 }
 
 // createGCSEPass - The public interface to this file...
-Pass *createGCSEPass() { return new GCSE(); }
+FunctionPass *createGCSEPass() { return new GCSE(); }
 
 
 // GCSE::runOnFunction - This is the main transformation entry point for a
index 51a4d9e24994400fd6a5b36a8dd2fe36c2921bd0..0f582c1feba5f7a0ed5d94a53c412435503691e3 100644 (file)
@@ -174,7 +174,7 @@ namespace {
   RegisterOpt<LICM> X("licm", "Loop Invariant Code Motion");
 }
 
-Pass *createLICMPass() { return new LICM(); }
+FunctionPass *createLICMPass() { return new LICM(); }
 
 /// runOnFunction - For LICM, this simply traverses the loop structure of the
 /// function, hoisting expressions out of loops if possible.
index 822a2d894776db3e986d61656ca405e270625fea..befdcfec774927e96a57142c303ac1b3a82458e8 100644 (file)
@@ -58,7 +58,7 @@ namespace {
   RegisterOpt<Reassociate> X("reassociate", "Reassociate expressions");
 }
 
-Pass *createReassociatePass() { return new Reassociate(); }
+FunctionPass *createReassociatePass() { return new Reassociate(); }
 
 void Reassociate::BuildRankMap(Function &F) {
   unsigned i = 2;