Clean up the use of static and anonymous namespaces. This turned up
[oota-llvm.git] / lib / Support / Statistic.cpp
index 4516ebc6b344ab2a69aea4c886aa4bea9a5c9e1b..13acc1b0fa1e541086c40724be001615ee5d0b4d 100644 (file)
@@ -70,6 +70,8 @@ void Statistic::RegisterStatistic() {
   Initialized = true;
 }
 
+namespace {
+
 struct NameCompare {
   bool operator()(const Statistic *LHS, const Statistic *RHS) const {
     int Cmp = std::strcmp(LHS->getName(), RHS->getName());
@@ -80,6 +82,8 @@ struct NameCompare {
   }
 };
 
+}
+
 // Print information when destroyed, iff command line option is specified.
 StatisticInfo::~StatisticInfo() {
   // Statistics not enabled?