}
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...