Implement a more powerful, simpler, pass system. This pass system can figure
[oota-llvm.git] / include / llvm / Transforms / Scalar / InductionVars.h
index 82ec9fcc75ff4a24d0d76b814898a0bea93c4310..146239d82bf3b51022990093a46528bcef6f27c8 100644 (file)
 
 namespace opt {
 
-struct InductionVariableCannonicalize : public Pass {
+struct InductionVariableCannonicalize : public MethodPass {
   // doInductionVariableCannonicalize - Simplify induction variables in loops
   //
   static bool doIt(Method *M);
 
-  virtual bool doPerMethodWork(Method *M) {
+  virtual bool runOnMethod(Method *M) {
     return doIt(M);
   }
 };