remove static ctors from Statistic objects

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32700 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-12-19 22:43:32 +00:00
parent 13b017c1f9
commit 36343735cb
2 changed files with 5 additions and 10 deletions

View File

@ -26,10 +26,8 @@
#include "llvm/Target/TargetData.h"
using namespace llvm;
namespace {
Statistic NumInitBytes("lli", "Number of bytes of global vars initialized");
Statistic NumGlobals ("lli", "Number of global vars initialized");
}
STATISTIC(NumInitBytes, "Number of bytes of global vars initialized");
STATISTIC(NumGlobals , "Number of global vars initialized");
ExecutionEngine::EECtorFn ExecutionEngine::JITCtor = 0;
ExecutionEngine::EECtorFn ExecutionEngine::InterpCtor = 0;

View File

@ -33,12 +33,9 @@
#include <algorithm>
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.