diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-06 17:46:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-06 17:46:33 +0000 |
commit | ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da (patch) | |
tree | cba006a0f0e329a969ce29b7d10ba0dc244f4f90 /lib/Transforms/Utils | |
parent | 2b4e98cb20c9391399b2601a793b6ea689da3cee (diff) | |
download | llvm-ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da.tar.gz llvm-ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da.tar.bz2 llvm-ac0b6ae358944ae8b2b5a11dc08f52c3ed89f2da.tar.xz |
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/BreakCriticalEdges.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/LCSSA.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/LoopSimplify.cpp | 4 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerAllocations.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerInvoke.cpp | 6 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerSelect.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/LowerSwitch.cpp | 2 | ||||
-rw-r--r-- | lib/Transforms/Utils/Mem2Reg.cpp | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/lib/Transforms/Utils/BreakCriticalEdges.cpp b/lib/Transforms/Utils/BreakCriticalEdges.cpp index 58f0347bf9..668d19dff7 100644 --- a/lib/Transforms/Utils/BreakCriticalEdges.cpp +++ b/lib/Transforms/Utils/BreakCriticalEdges.cpp @@ -30,7 +30,7 @@ using namespace llvm; namespace { - Statistic<> NumBroken("break-crit-edges", "Number of blocks inserted"); + Statistic NumBroken("break-crit-edges", "Number of blocks inserted"); struct VISIBILITY_HIDDEN BreakCriticalEdges : public FunctionPass { virtual bool runOnFunction(Function &F); diff --git a/lib/Transforms/Utils/LCSSA.cpp b/lib/Transforms/Utils/LCSSA.cpp index ca7aff97f3..fe9890316f 100644 --- a/lib/Transforms/Utils/LCSSA.cpp +++ b/lib/Transforms/Utils/LCSSA.cpp @@ -43,7 +43,7 @@ using namespace llvm; namespace { - static Statistic<> NumLCSSA("lcssa", + static Statistic NumLCSSA("lcssa", "Number of live out of a loop variables"); struct LCSSA : public FunctionPass { diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp index 19293f47fb..7796022e89 100644 --- a/lib/Transforms/Utils/LoopSimplify.cpp +++ b/lib/Transforms/Utils/LoopSimplify.cpp @@ -49,9 +49,9 @@ using namespace llvm; namespace { - Statistic<> + Statistic NumInserted("loopsimplify", "Number of pre-header or exit blocks inserted"); - Statistic<> + Statistic NumNested("loopsimplify", "Number of nested loops split out"); struct VISIBILITY_HIDDEN LoopSimplify : public FunctionPass { diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index b7e4040145..75a4c704c9 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -25,7 +25,7 @@ using namespace llvm; namespace { - Statistic<> NumLowered("lowerallocs", "Number of allocations lowered"); + Statistic NumLowered("lowerallocs", "Number of allocations lowered"); /// LowerAllocations - Turn malloc and free instructions into %malloc and /// %free calls. diff --git a/lib/Transforms/Utils/LowerInvoke.cpp b/lib/Transforms/Utils/LowerInvoke.cpp index 507fb86f56..dfeb8349f4 100644 --- a/lib/Transforms/Utils/LowerInvoke.cpp +++ b/lib/Transforms/Utils/LowerInvoke.cpp @@ -50,9 +50,9 @@ using namespace llvm; namespace { - Statistic<> NumInvokes("lowerinvoke", "Number of invokes replaced"); - Statistic<> NumUnwinds("lowerinvoke", "Number of unwinds replaced"); - Statistic<> NumSpilled("lowerinvoke", + Statistic NumInvokes("lowerinvoke", "Number of invokes replaced"); + Statistic NumUnwinds("lowerinvoke", "Number of unwinds replaced"); + Statistic NumSpilled("lowerinvoke", "Number of registers live across unwind edges"); cl::opt<bool> ExpensiveEHSupport("enable-correct-eh-support", cl::desc("Make the -lowerinvoke pass insert expensive, but correct, EH code")); diff --git a/lib/Transforms/Utils/LowerSelect.cpp b/lib/Transforms/Utils/LowerSelect.cpp index 6859813b47..5efdd9bc19 100644 --- a/lib/Transforms/Utils/LowerSelect.cpp +++ b/lib/Transforms/Utils/LowerSelect.cpp @@ -28,7 +28,7 @@ using namespace llvm; namespace { - Statistic<> NumLowered("lowerselect","Number of select instructions lowered"); + Statistic NumLowered("lowerselect","Number of select instructions lowered"); /// LowerSelect - Turn select instructions into conditional branches. /// diff --git a/lib/Transforms/Utils/LowerSwitch.cpp b/lib/Transforms/Utils/LowerSwitch.cpp index 401f61724e..4ad12b9c25 100644 --- a/lib/Transforms/Utils/LowerSwitch.cpp +++ b/lib/Transforms/Utils/LowerSwitch.cpp @@ -26,7 +26,7 @@ using namespace llvm; namespace { - Statistic<> NumLowered("lowerswitch", "Number of SwitchInst's replaced"); + Statistic NumLowered("lowerswitch", "Number of SwitchInst's replaced"); /// LowerSwitch Pass - Replace all SwitchInst instructions with chained branch /// instructions. Note that this cannot be a BasicBlock pass because it diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index f4ab50f08d..e0f79dd36c 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp @@ -24,7 +24,7 @@ using namespace llvm; namespace { - Statistic<> NumPromoted("mem2reg", "Number of alloca's promoted"); + Statistic NumPromoted("mem2reg", "Number of alloca's promoted"); struct VISIBILITY_HIDDEN PromotePass : public FunctionPass { // runOnFunction - To run this pass, first we calculate the alloca |