diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-07 17:20:18 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-11-07 17:20:18 +0000 |
commit | ed1f7c81aa24fd8126496a75c13c01db111b43ad (patch) | |
tree | 259b8c90a4c52b82044f61f12bf310b6301fa5eb /lib/Transforms | |
parent | d24fdda8e94cf56fbd872150a597da66d17f2e74 (diff) |
Declare FunctionPasses as such so that they can be used in FunctionPassManager.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9768 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/GCSE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/LICM.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/Reassociate.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/Transforms/Scalar/GCSE.cpp b/lib/Transforms/Scalar/GCSE.cpp index caf68bc1c8..e1654e5d7f 100644 --- a/lib/Transforms/Scalar/GCSE.cpp +++ b/lib/Transforms/Scalar/GCSE.cpp @@ -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 diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 51a4d9e249..0f582c1feb 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -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. diff --git a/lib/Transforms/Scalar/Reassociate.cpp b/lib/Transforms/Scalar/Reassociate.cpp index 822a2d8947..befdcfec77 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -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; |