* Remove getPassName implementation

* Register all Passes


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2002-07-23 18:06:30 +00:00
parent 1198266778
commit af41a12370
5 changed files with 12 additions and 12 deletions
+2 -2
View 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(); }