From ed1f7c81aa24fd8126496a75c13c01db111b43ad Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 7 Nov 2003 17:20:18 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/GCSE.cpp | 2 +- lib/Transforms/Scalar/LICM.cpp | 2 +- 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 caf68bc1c8d..e1654e5d7f3 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 51a4d9e2499..0f582c1feba 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -174,7 +174,7 @@ namespace { RegisterOpt 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 822a2d89477..befdcfec774 100644 --- a/lib/Transforms/Scalar/Reassociate.cpp +++ b/lib/Transforms/Scalar/Reassociate.cpp @@ -58,7 +58,7 @@ namespace { RegisterOpt X("reassociate", "Reassociate expressions"); } -Pass *createReassociatePass() { return new Reassociate(); } +FunctionPass *createReassociatePass() { return new Reassociate(); } void Reassociate::BuildRankMap(Function &F) { unsigned i = 2;