summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 22:43:32 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 22:43:32 +0000
commitc346ecd78053321eb6ff39c859fc816c7d9163d4 (patch)
tree73a99f4d80a7c8d41c6bd2030cfa51b2808bb0c7 /llvm/lib/ExecutionEngine
parent38ea551520a05650a95b0ec297f0130cd93f5017 (diff)
downloadbcm5719-llvm-c346ecd78053321eb6ff39c859fc816c7d9163d4.tar.gz
bcm5719-llvm-c346ecd78053321eb6ff39c859fc816c7d9163d4.zip
remove static ctors from Statistic objects
llvm-svn: 32700
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp6
-rw-r--r--llvm/lib/ExecutionEngine/JIT/JITEmitter.cpp9
2 files changed, 5 insertions, 10 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 8aaf0eda2e9..83e94828b7a 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -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;
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 <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.
OpenPOWER on IntegriCloud