mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Incorporate ConstantMerge.h into IPO.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3035 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b713599c93
commit
9cfea85b8b
@ -14,13 +14,11 @@
|
|||||||
//
|
//
|
||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
|
|
||||||
#include "llvm/Transforms/ConstantMerge.h"
|
#include "llvm/Transforms/IPO.h"
|
||||||
#include "llvm/Module.h"
|
#include "llvm/Module.h"
|
||||||
#include "llvm/Pass.h"
|
#include "llvm/Pass.h"
|
||||||
#include "Support/StatisticReporter.h"
|
#include "Support/StatisticReporter.h"
|
||||||
|
|
||||||
static Statistic<> NumMerged("constmerge\t\t- Number of global constants merged");
|
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
struct ConstantMerge : public Pass {
|
struct ConstantMerge : public Pass {
|
||||||
// run - For this pass, process all of the globals in the module,
|
// 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");
|
RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user