Eliminate static ctors from Statistics
llvm-svn: 32698
diff --git a/llvm/lib/CodeGen/RegAllocLinearScan.cpp b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
index 1977a54..5c6512d 100644
--- a/llvm/lib/CodeGen/RegAllocLinearScan.cpp
+++ b/llvm/lib/CodeGen/RegAllocLinearScan.cpp
@@ -35,17 +35,14 @@
#include <cmath>
using namespace llvm;
+STATISTIC(NumIters , "Number of iterations performed");
+STATISTIC(NumBacktracks, "Number of times we had to backtrack");
+
+static RegisterRegAlloc
+linearscanRegAlloc("linearscan", " linear scan register allocator",
+ createLinearScanRegisterAllocator);
+
namespace {
-
- static Statistic NumIters
- ("regalloc", "Number of iterations performed");
- static Statistic NumBacktracks
- ("regalloc", "Number of times we had to backtrack");
-
- static RegisterRegAlloc
- linearscanRegAlloc("linearscan", " linear scan register allocator",
- createLinearScanRegisterAllocator);
-
static unsigned numIterations = 0;
static unsigned numIntervals = 0;