diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2008-05-27 12:41:24 +0000 |
---|---|---|
committer | Matthijs Kooijman <matthijs@stdin.nl> | 2008-05-27 12:41:24 +0000 |
commit | 8e1cddc11dd8be5855a43e31d8db20b00c54ee03 (patch) | |
tree | ec1ad735cce72ea37483f9a56d18a9c28bba6dd8 | |
parent | 43e2a035309f4e353a8bd5547d10125414597e74 (diff) | |
download | external_llvm-8e1cddc11dd8be5855a43e31d8db20b00c54ee03.zip external_llvm-8e1cddc11dd8be5855a43e31d8db20b00c54ee03.tar.gz external_llvm-8e1cddc11dd8be5855a43e31d8db20b00c54ee03.tar.bz2 |
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
-rw-r--r-- | include/llvm/ADT/Statistic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/Statistic.h b/include/llvm/ADT/Statistic.h index 6610198..6cdcf9f 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 |