diff options
Diffstat (limited to 'include/llvm/Transforms/Scalar/ConstantProp.h')
-rw-r--r-- | include/llvm/Transforms/Scalar/ConstantProp.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Transforms/Scalar/ConstantProp.h b/include/llvm/Transforms/Scalar/ConstantProp.h index 3cf6d94c4f..918ef07270 100644 --- a/include/llvm/Transforms/Scalar/ConstantProp.h +++ b/include/llvm/Transforms/Scalar/ConstantProp.h @@ -12,12 +12,12 @@ class TerminatorInst; namespace opt { -struct ConstantPropogation : public StatelessPass<ConstantPropogation> { +struct ConstantPropogation : public Pass { // doConstantPropogation - Do trivial constant propogation and expression // folding static bool doConstantPropogation(Method *M); - inline static bool doPerMethodWork(Method *M) { + inline bool doPerMethodWork(Method *M) { return doConstantPropogation(M); } }; @@ -34,11 +34,10 @@ bool ConstantFoldTerminator(TerminatorInst *T); //===----------------------------------------------------------------------===// // Sparse Conditional Constant Propogation Pass // - -struct SCCPPass : public StatelessPass<SCCPPass> { +struct SCCPPass : public Pass { static bool doSCCP(Method *M); - inline static bool doPerMethodWork(Method *M) { + inline bool doPerMethodWork(Method *M) { return doSCCP(M); } }; |