mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-10 05:41:40 +00:00
Incorporate ConstantMerge.h into IPO.h
llvm-svn: 3035
This commit is contained in:
parent
38adabd0a1
commit
ac78173ee0
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user