X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FADT%2FStatistic.h;h=537f86637953bf76251761912b6cd66b83273e97;hb=b141e397d52d9946e93f84c65c6b2e653b026041;hp=ec4fdd6009b8bb3d47df05f52e0cb044a8675835;hpb=0a3615246fe194f64e5d4afea5943542545819fc;p=oota-llvm.git diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index ec4fdd6009b..537f8663795 100644 --- a/include/llvm/ADT/Statistic.h +++ b/include/llvm/ADT/Statistic.h @@ -2,8 +2,8 @@ // // 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. // //===----------------------------------------------------------------------===// // @@ -56,7 +56,7 @@ public: 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(); @@ -64,11 +64,11 @@ protected: } 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