aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-23 19:57:40 +0000
committerChris Lattner <sabre@nondot.org>2002-07-23 19:57:40 +0000
commit9cfea85b8b41458c8d0e84c52fad6f2244d3ae33 (patch)
tree2447c7776c1ad300cff877d49824cfacb26fadbb /lib
parentb713599c939e31242ad60fcfee5b20cc24d7c7aa (diff)
downloadexternal_llvm-9cfea85b8b41458c8d0e84c52fad6f2244d3ae33.zip
external_llvm-9cfea85b8b41458c8d0e84c52fad6f2244d3ae33.tar.gz
external_llvm-9cfea85b8b41458c8d0e84c52fad6f2244d3ae33.tar.bz2
Incorporate ConstantMerge.h into IPO.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Transforms/IPO/ConstantMerge.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp
index 71eadbf..905c7a5 100644
--- a/lib/Transforms/IPO/ConstantMerge.cpp
+++ b/lib/Transforms/IPO/ConstantMerge.cpp
@@ -14,13 +14,11 @@
//
//===----------------------------------------------------------------------===//
-#include "llvm/Transforms/ConstantMerge.h"
+#include "llvm/Transforms/IPO.h"
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "Support/StatisticReporter.h"
-static Statistic<> NumMerged("constmerge\t\t- Number of global constants merged");
-
namespace {
struct ConstantMerge : public Pass {
// run - For this pass, process all of the globals in the module,
@@ -33,6 +31,7 @@ namespace {
}
};
+Statistic<> NumMerged("constmerge\t\t- Number of global constants merged");
RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
}