diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:09:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:09:18 +0000 |
commit | 1631bcb1d43425ed03624eaa47cf4f53fe3832fd (patch) | |
tree | 6a7495b78308f0ebbc44db78d5e279bae3bb88f7 /llvm/lib/Transforms/IPO/ConstantMerge.cpp | |
parent | 0e5255bdc656fc450504b7651735988c450df2ec (diff) | |
download | bcm5719-llvm-1631bcb1d43425ed03624eaa47cf4f53fe3832fd.tar.gz bcm5719-llvm-1631bcb1d43425ed03624eaa47cf4f53fe3832fd.zip |
Eliminate static ctors due to Statistic objects
llvm-svn: 32693
Diffstat (limited to 'llvm/lib/Transforms/IPO/ConstantMerge.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/ConstantMerge.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/ConstantMerge.cpp b/llvm/lib/Transforms/IPO/ConstantMerge.cpp index 7ba7b32a7e3..291653376ed 100644 --- a/llvm/lib/Transforms/IPO/ConstantMerge.cpp +++ b/llvm/lib/Transforms/IPO/ConstantMerge.cpp @@ -17,15 +17,16 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "constmerge" #include "llvm/Transforms/IPO.h" #include "llvm/Module.h" #include "llvm/Pass.h" #include "llvm/ADT/Statistic.h" using namespace llvm; -namespace { - Statistic NumMerged("constmerge", "Number of global constants merged"); +STATISTIC(NumMerged, "Number of global constants merged"); +namespace { struct ConstantMerge : public ModulePass { // run - For this pass, process all of the globals in the module, // eliminating duplicate constants. |