aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO/ConstantMerge.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 18:06:30 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 18:06:30 +0000
commitaf41a12370010325eb163b734d5757a7f0296e67 (patch)
tree3cea3437396dc74b015542f4b632852e2fa23359 /lib/Transforms/IPO/ConstantMerge.cpp
parent11982667780c40f0640408e78da1ba06a35c183e (diff)
* Remove getPassName implementation
* Register all Passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3015 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r--lib/Transforms/IPO/ConstantMerge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp
index 9a67dbdf19..71eadbf982 100644
--- a/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/lib/Transforms/IPO/ConstantMerge.cpp
@@ -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(); }