* Rename MethodPass class to FunctionPass
[oota-llvm.git] / lib / Transforms / Scalar / ConstantProp.cpp
index 26d5c7d43ea0de00ef5c6d4d7891c40bb35eed57..a8cd02fed0561ebedbc32b41fe0727cef9afd831 100644 (file)
@@ -211,8 +211,8 @@ static bool DoConstPropPass(Function *F) {
 }
 
 namespace {
-  struct ConstantPropogation : public MethodPass {
-    inline bool runOnMethod(Function *F) {
+  struct ConstantPropogation : public FunctionPass {
+    inline bool runOnFunction(Function *F) {
       bool Modified = false;
 
       // Fold constants until we make no progress...