diff options
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r-- | lib/Transforms/IPO/ConstantMerge.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/IPO/DeadTypeElimination.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/FunctionResolution.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/GlobalDCE.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/Internalize.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/IPO/OldPoolAllocate.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/IPO/SimpleStructMutation.cpp | 12 |
7 files changed, 14 insertions, 14 deletions
diff --git a/lib/Transforms/IPO/ConstantMerge.cpp b/lib/Transforms/IPO/ConstantMerge.cpp index 905c7a52eb..b979104401 100644 --- a/lib/Transforms/IPO/ConstantMerge.cpp +++ b/lib/Transforms/IPO/ConstantMerge.cpp @@ -31,8 +31,8 @@ namespace { } }; -Statistic<> NumMerged("constmerge\t\t- Number of global constants merged"); -RegisterPass<ConstantMerge> X("constmerge", "Merge Duplicate Global Constants"); + Statistic<> NumMerged("constmerge\t\t- Number of global constants merged"); + RegisterOpt<ConstantMerge> X("constmerge","Merge Duplicate Global Constants"); } Pass *createConstantMergePass() { return new ConstantMerge(); } diff --git a/lib/Transforms/IPO/DeadTypeElimination.cpp b/lib/Transforms/IPO/DeadTypeElimination.cpp index f276ca7c00..3473f526dc 100644 --- a/lib/Transforms/IPO/DeadTypeElimination.cpp +++ b/lib/Transforms/IPO/DeadTypeElimination.cpp @@ -30,7 +30,7 @@ namespace { AU.addRequired(FindUsedTypes::ID); } }; - RegisterPass<DTE> X("deadtypeelim", "Dead Type Elimination"); + RegisterOpt<DTE> X("deadtypeelim", "Dead Type Elimination"); Statistic<> NumKilled("deadtypeelim\t- Number of unused typenames removed from symtab"); } diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 0d05611c94..44f8485121 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -32,7 +32,7 @@ namespace { struct FunctionResolvingPass : public Pass { bool run(Module &M); }; - RegisterPass<FunctionResolvingPass> X("funcresolve", "Resolve Functions"); + RegisterOpt<FunctionResolvingPass> X("funcresolve", "Resolve Functions"); } Pass *createFunctionResolvingPass() { diff --git a/lib/Transforms/IPO/GlobalDCE.cpp b/lib/Transforms/IPO/GlobalDCE.cpp index a61b1ab592..029456ef5e 100644 --- a/lib/Transforms/IPO/GlobalDCE.cpp +++ b/lib/Transforms/IPO/GlobalDCE.cpp @@ -86,7 +86,7 @@ namespace { AU.addRequired(CallGraph::ID); } }; - RegisterPass<GlobalDCE> X("globaldce", "Dead Global Elimination"); + RegisterOpt<GlobalDCE> X("globaldce", "Dead Global Elimination"); } Pass *createGlobalDCEPass() { return new GlobalDCE(); } diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index b6a48b4e22..7ea7a6fff8 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -41,7 +41,7 @@ class InternalizePass : public Pass { } }; -RegisterPass<InternalizePass> X("internalize", "Internalize Functions"); + RegisterOpt<InternalizePass> X("internalize", "Internalize Functions"); } // end anonymous namespace Pass *createInternalizePass() { diff --git a/lib/Transforms/IPO/OldPoolAllocate.cpp b/lib/Transforms/IPO/OldPoolAllocate.cpp index c22d53ef91..43fd162d8e 100644 --- a/lib/Transforms/IPO/OldPoolAllocate.cpp +++ b/lib/Transforms/IPO/OldPoolAllocate.cpp @@ -315,8 +315,8 @@ namespace { }; - RegisterPass<PoolAllocate> X("poolalloc", - "Pool allocate disjoint datastructures"); + RegisterOpt<PoolAllocate> X("poolalloc", + "Pool allocate disjoint datastructures"); } // isNotPoolableAlloc - This is a predicate that returns true if the specified diff --git a/lib/Transforms/IPO/SimpleStructMutation.cpp b/lib/Transforms/IPO/SimpleStructMutation.cpp index 464d628e10..59871556ac 100644 --- a/lib/Transforms/IPO/SimpleStructMutation.cpp +++ b/lib/Transforms/IPO/SimpleStructMutation.cpp @@ -189,10 +189,10 @@ Pass *createSortElementsPass(const TargetData &TD) { } namespace { - RegisterPass<SwapStructElements> X("swapstructs", - "Swap structure types around", - createSwapElementsPass); - RegisterPass<SortStructElements> Y("sortstructs", - "Sort structure elements by size", - createSortElementsPass); + RegisterOpt<SwapStructElements> X("swapstructs", + "Swap structure types around", + createSwapElementsPass); + RegisterOpt<SortStructElements> Y("sortstructs", + "Sort structure elements by size", + createSortElementsPass); } |