[DebugCounter] Move the semicolon out of the DEBUG_COUNTER macro and require it to...
authorCraig Topper <craig.topper@intel.com>
Thu, 10 Aug 2017 17:48:11 +0000 (17:48 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 10 Aug 2017 17:48:11 +0000 (17:48 +0000)
commit9cd976d041de6006d208f3f20fd7d353a383a18b
tree44534722725a11575b189a4452c24e53cdad96d5
parent74fbf45f4c92d2c22e6b05b8e4659e47cf6620e1
[DebugCounter] Move the semicolon out of the DEBUG_COUNTER macro and require it to be placed at the end of each use.

This make it consistent with STATISTIC which it will often appears near.

While there move one DEBUG_COUNTER instance out of an anonymous namespace. It's already declaring a static variable so the namespace is unnecessary.

llvm-svn: 310637
llvm/docs/ProgrammersManual.rst
llvm/include/llvm/Support/DebugCounter.h
llvm/lib/Transforms/Scalar/NewGVN.cpp
llvm/lib/Transforms/Utils/PredicateInfo.cpp