diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-27 17:43:21 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-07-27 17:43:21 +0000 |
commit | 96d4bf7aee0c6ce915e6eb77065df388f374fafb (patch) | |
tree | 5258e872598d91c67d3d0dfb9dcb679d428674d4 /lib/Transforms | |
parent | c91bc304366399fab9eecd338725ee90f5519778 (diff) |
Make the create...() functions for some of these passes return a FunctionPass *.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15276 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/DCE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/DCE.cpp b/lib/Transforms/Scalar/DCE.cpp index 64dfa8c82a..570a5252d5 100644 --- a/lib/Transforms/Scalar/DCE.cpp +++ b/lib/Transforms/Scalar/DCE.cpp @@ -123,7 +123,7 @@ bool DCE::runOnFunction(Function &F) { return true; } -Pass *llvm::createDeadCodeEliminationPass() { +FunctionPass *llvm::createDeadCodeEliminationPass() { return new DCE(); } diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index f4910e4cc3..3c46e2c554 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp @@ -3210,7 +3210,7 @@ bool InstCombiner::runOnFunction(Function &F) { return Changed; } -Pass *llvm::createInstructionCombiningPass() { +FunctionPass *llvm::createInstructionCombiningPass() { return new InstCombiner(); } |