* Remove getPassName implementation
* Register all Passes

llvm-svn: 3015
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
index 9a67dbd..71eadbf 100644
--- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp
@@ -23,8 +23,6 @@
 
 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 @@
       AU.preservesCFG();
     }
   };
+
+RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
 }
 
 Pass *createConstantMergePass() { return new ConstantMerge(); }