* Remove getPassName implementation
[oota-llvm.git] / lib / Transforms / IPO / ConstantMerge.cpp
index 9a67dbdf198de9a1c6bc26a6a13f85ebcf9d0b54..71eadbf9829963bdbc92c973c04f970a7318c617 100644 (file)
@@ -23,8 +23,6 @@ static Statistic<> NumMerged("constmerge\t\t- Number of global constants merged"
 
 namespace {
   struct ConstantMerge : public Pass {
-    const char *getPassName() const {return "Merge Duplicate Global Constants";}
-    
     // run - For this pass, process all of the globals in the module,
     // eliminating duplicate constants.
     //
@@ -34,6 +32,8 @@ namespace {
       AU.preservesCFG();
     }
   };
+
+RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
 }
 
 Pass *createConstantMergePass() { return new ConstantMerge(); }