From 8e1cddc11dd8be5855a43e31d8db20b00c54ee03 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 27 May 2008 12:41:24 +0000 Subject: [PATCH] Use an explicit llvm:: prefix in the STATISTIC macro, so STATISTIC can still be used when "using namespace llvm" is not in effect. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51592 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/Statistic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index 6610198df10..6cdcf9f382e 100644 --- a/include/llvm/ADT/Statistic.h +++ b/include/llvm/ADT/Statistic.h @@ -68,7 +68,7 @@ protected: // 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