Switch over Transforms/Scalar to use the STATISTIC macro. For each statistic
converted, we lose a static initializer. This also allows GCC to emit warnings
about unused statistics.
llvm-svn: 32690
diff --git a/llvm/lib/Transforms/Scalar/CondPropagate.cpp b/llvm/lib/Transforms/Scalar/CondPropagate.cpp
index 4e07614..49a8496 100644
--- a/llvm/lib/Transforms/Scalar/CondPropagate.cpp
+++ b/llvm/lib/Transforms/Scalar/CondPropagate.cpp
@@ -25,12 +25,10 @@
#include "llvm/Support/Streams.h"
using namespace llvm;
-namespace {
- Statistic
- NumBrThread("condprop", "Number of CFG edges threaded through branches");
- Statistic
- NumSwThread("condprop", "Number of CFG edges threaded through switches");
+STATISTIC(NumBrThread, "Number of CFG edges threaded through branches");
+STATISTIC(NumSwThread, "Number of CFG edges threaded through switches");
+namespace {
struct CondProp : public FunctionPass {
virtual bool runOnFunction(Function &F);