From c346ecd78053321eb6ff39c859fc816c7d9163d4 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 19 Dec 2006 22:43:32 +0000 Subject: remove static ctors from Statistic objects llvm-svn: 32700 --- llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'llvm/lib/ExecutionEngine/JIT') diff --git a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp index 227c5dbb640..4fc454e2ba5 100644 --- a/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp +++ b/llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp @@ -33,12 +33,9 @@ #include using namespace llvm; -namespace { - Statistic NumBytes("jit", "Number of bytes of machine code compiled"); - Statistic NumRelos("jit", "Number of relocations applied"); - JIT *TheJIT = 0; -} - +STATISTIC(NumBytes, "Number of bytes of machine code compiled"); +STATISTIC(NumRelos, "Number of relocations applied"); +static JIT *TheJIT = 0; //===----------------------------------------------------------------------===// // JITMemoryManager code. -- cgit v1.2.3