* Clean up code a little bit
[oota-llvm.git] / lib / Transforms / Scalar / ConstantProp.cpp
index 51bd6cb32f662091dfef265cb07c4b147350af16..5da909e2020bc68ddaa04894ff7f84fdcf3b1067 100644 (file)
@@ -24,14 +24,14 @@ static Statistic<> NumInstKilled("constprop - Number of instructions killed");
 
 namespace {
   struct ConstantPropogation : public FunctionPass {
-    const char *getPassName() const { return "Simple Constant Propogation"; }
-
     bool runOnFunction(Function &F);
 
     virtual void getAnalysisUsage(AnalysisUsage &AU) const {
       AU.preservesCFG();
     }
   };
+
+  RegisterOpt<ConstantPropogation> X("constprop","Simple constant propogation");
 }
 
 Pass *createConstantPropogationPass() {