summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocLocal.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:41:21 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:41:21 +0000
commitaee775a6b717f0ec397e5d82d2a24d607f147466 (patch)
tree1178dac15fd98cb50691d48a4fab7989e9ce420d /llvm/lib/CodeGen/RegAllocLocal.cpp
parent57ef942306c83d26160fa024313600f894c9c065 (diff)
downloadbcm5719-llvm-aee775a6b717f0ec397e5d82d2a24d607f147466.tar.gz
bcm5719-llvm-aee775a6b717f0ec397e5d82d2a24d607f147466.zip
Eliminate static ctors from Statistics
llvm-svn: 32698
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocLocal.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocLocal.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/RegAllocLocal.cpp b/llvm/lib/CodeGen/RegAllocLocal.cpp
index 876eb950d9e..644e221212a 100644
--- a/llvm/lib/CodeGen/RegAllocLocal.cpp
+++ b/llvm/lib/CodeGen/RegAllocLocal.cpp
@@ -32,12 +32,11 @@
#include <algorithm>
using namespace llvm;
-namespace {
- static Statistic NumStores("ra-local", "Number of stores added");
- static Statistic NumLoads ("ra-local", "Number of loads added");
- static Statistic NumFolded("ra-local", "Number of loads/stores folded "
- "into instructions");
+STATISTIC(NumStores, "Number of stores added");
+STATISTIC(NumLoads , "Number of loads added");
+STATISTIC(NumFolded, "Number of loads/stores folded into instructions");
+namespace {
static RegisterRegAlloc
localRegAlloc("local", " local register allocator",
createLocalRegisterAllocator);
OpenPOWER on IntegriCloud