[llvm-commits] [llvm] r51592 - /llvm/trunk/include/llvm/ADT/Statistic.h
Matthijs Kooijman
matthijs at stdin.nl
Tue May 27 05:41:24 PDT 2008
Author: matthijs
Date: Tue May 27 07:41:24 2008
New Revision: 51592
URL: http://llvm.org/viewvc/llvm-project?rev=51592&view=rev
Log:
Use an explicit llvm:: prefix in the STATISTIC macro, so STATISTIC can still be
used when "using namespace llvm" is not in effect.
Modified:
llvm/trunk/include/llvm/ADT/Statistic.h
Modified: llvm/trunk/include/llvm/ADT/Statistic.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/Statistic.h?rev=51592&r1=51591&r2=51592&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/Statistic.h (original)
+++ llvm/trunk/include/llvm/ADT/Statistic.h Tue May 27 07:41:24 2008
@@ -68,7 +68,7 @@
// 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
More information about the llvm-commits
mailing list