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
This commit is contained in:
Matthijs Kooijman
2008-05-27 12:41:24 +00:00
parent 43e2a03530
commit 8e1cddc11d

View File

@@ -68,7 +68,7 @@ protected:
// STATISTIC - A macro to make definition of statistics really simple. This // STATISTIC - A macro to make definition of statistics really simple. This
// automatically passes the DEBUG_TYPE of the file into the statistic. // automatically passes the DEBUG_TYPE of the file into the statistic.
#define STATISTIC(VARNAME, DESC) \ #define STATISTIC(VARNAME, DESC) \
static Statistic VARNAME = { DEBUG_TYPE, DESC, 0, 0 } static llvm::Statistic VARNAME = { DEBUG_TYPE, DESC, 0, 0 }
} // End llvm namespace } // End llvm namespace