From cd3245ac45c595da96bb768a55cddc356dff55fe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Dec 2006 22:41:21 +0000 Subject: Eliminate static ctors from Statistics git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32698 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAllocLocal.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib/CodeGen/RegAllocLocal.cpp') diff --git a/lib/CodeGen/RegAllocLocal.cpp b/lib/CodeGen/RegAllocLocal.cpp index 876eb950d9..644e221212 100644 --- a/lib/CodeGen/RegAllocLocal.cpp +++ b/lib/CodeGen/RegAllocLocal.cpp @@ -32,12 +32,11 @@ #include 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); -- cgit v1.2.3