mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
* Remove getPassName implementation
* Register all Passes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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(); }
|
||||
|
||||
Reference in New Issue
Block a user