diff options
author | Chris Lattner <sabre@nondot.org> | 2002-02-26 21:46:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-02-26 21:46:54 +0000 |
commit | bd0ef77cde9c9e82f2b4ad33e4982c46274d6540 (patch) | |
tree | 0903b61112c9e6d336c8b623e235ede2f937f13c /include/llvm/Transforms/RaisePointerReferences.h | |
parent | 3b2541424f771ae11c30675ce06da7b380780028 (diff) |
Change over to use new style pass mechanism, now passes only expose small
creation functions in their public header file, unless they can help it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1816 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/RaisePointerReferences.h')
-rw-r--r-- | include/llvm/Transforms/RaisePointerReferences.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/include/llvm/Transforms/RaisePointerReferences.h b/include/llvm/Transforms/RaisePointerReferences.h index b652f33712..ec2ce319a3 100644 --- a/include/llvm/Transforms/RaisePointerReferences.h +++ b/include/llvm/Transforms/RaisePointerReferences.h @@ -9,27 +9,12 @@ #ifndef LLVM_TRANSFORMS_LEVELCHANGE_H #define LLVM_TRANSFORMS_LEVELCHANGE_H -#include "llvm/Pass.h" +class Pass; // RaisePointerReferences - Try to eliminate as many pointer arithmetic // expressions as possible, by converting expressions to use getelementptr and // friends. // -struct RaisePointerReferences : public MethodPass { - static bool doit(Method *M); - - virtual bool runOnMethod(Method *M) { return doit(M); } -}; - - -// EliminateAuxillaryInductionVariables - Eliminate all aux indvars. This -// converts all induction variables to reference a cannonical induction -// variable (which starts at 0 and counts by 1). -// -struct EliminateAuxillaryInductionVariables : public MethodPass { - static bool doit(Method *M) { return false; } // TODO! - - virtual bool runOnMethod(Method *M) { return doit(M); } -}; +Pass *createRaisePointerReferencesPass(); #endif |