aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
committerDan Gohman <gohman@apple.com>2010-04-15 17:08:50 +0000
commit738422fa501a08e58d1d55ebebdf0ca499059d72 (patch)
treebdf2ae210bf2fd57d31bf92e1a3d89a631ab3d58 /lib/Support/Timer.cpp
parentb414b393aa17693ce7db0ed9409e9c6a721394a2 (diff)
downloadexternal_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.zip
external_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.tar.gz
external_llvm-738422fa501a08e58d1d55ebebdf0ca499059d72.tar.bz2
Fix a bunch of namespace polution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101376 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r--lib/Support/Timer.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp
index 4fac073..481f6ba 100644
--- a/lib/Support/Timer.cpp
+++ b/lib/Support/Timer.cpp
@@ -190,6 +190,8 @@ void TimeRecord::print(const TimeRecord &Total, raw_ostream &OS) const {
// NamedRegionTimer Implementation
//===----------------------------------------------------------------------===//
+namespace {
+
typedef StringMap<Timer> Name2TimerMap;
class Name2PairMap {
@@ -216,6 +218,8 @@ public:
}
};
+}
+
static ManagedStatic<Name2TimerMap> NamedTimers;
static ManagedStatic<Name2PairMap> NamedGroupedTimers;