diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:41:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:41:21 +0000 |
commit | aee775a6b717f0ec397e5d82d2a24d607f147466 (patch) | |
tree | 1178dac15fd98cb50691d48a4fab7989e9ce420d /llvm/lib/CodeGen/RegAllocLinearScan.cpp | |
parent | 57ef942306c83d26160fa024313600f894c9c065 (diff) | |
download | bcm5719-llvm-aee775a6b717f0ec397e5d82d2a24d607f147466.tar.gz bcm5719-llvm-aee775a6b717f0ec397e5d82d2a24d607f147466.zip |
Eliminate static ctors from Statistics
llvm-svn: 32698
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLinearScan.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocLinearScan.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp index 1977a5489de..5c6512d8ed7 100644 --- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp +++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp @@ -35,17 +35,14 @@ #include <cmath> using namespace llvm; -namespace { - - static Statistic NumIters - ("regalloc", "Number of iterations performed"); - static Statistic NumBacktracks - ("regalloc", "Number of times we had to backtrack"); +STATISTIC(NumIters , "Number of iterations performed"); +STATISTIC(NumBacktracks, "Number of times we had to backtrack"); - static RegisterRegAlloc - linearscanRegAlloc("linearscan", " linear scan register allocator", - createLinearScanRegisterAllocator); +static RegisterRegAlloc +linearscanRegAlloc("linearscan", " linear scan register allocator", + createLinearScanRegisterAllocator); +namespace { static unsigned numIterations = 0; static unsigned numIntervals = 0; |