//
// The LLVM Compiler Infrastructure
//
-// This file was developed by the LLVM research group and is distributed under
-// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// This file is distributed under the University of Illinois Open Source
+// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
const Statistic &operator-=(const unsigned &V) { Value -= V; return init(); }
const Statistic &operator*=(const unsigned &V) { Value *= V; return init(); }
const Statistic &operator/=(const unsigned &V) { Value /= V; return init(); }
-
+
protected:
Statistic &init() {
if (!Initialized) RegisterStatistic();
}
void RegisterStatistic();
};
-
+
// STATISTIC - A macro to make definition of statistics really simple. This
// automatically passes the DEBUG_TYPE of the file into the statistic.
#define STATISTIC(VARNAME, DESC) \
- static Statistic VARNAME = { DEBUG_TYPE, DESC, 0, 0 }
+ static llvm::Statistic VARNAME = { DEBUG_TYPE, DESC, 0, 0 }
} // End llvm namespace