Convert to new simpler pass structure

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@877 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2001-10-18 05:21:56 +00:00
parent edcf6491a8
commit b44523bd9d
6 changed files with 25 additions and 30 deletions

View File

@@ -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);
}
};