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/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp
index 4783388..40f341c 100644
--- a/llvm/lib/Transforms/Scalar/LICM.cpp
+++ b/llvm/lib/Transforms/Scalar/LICM.cpp
@@ -49,18 +49,17 @@
 #include <algorithm>
 using namespace llvm;
 
+STATISTIC(NumSunk      , "Number of instructions sunk out of loop");
+STATISTIC(NumHoisted   , "Number of instructions hoisted out of loop");
+STATISTIC(NumMovedLoads, "Number of load insts hoisted or sunk");
+STATISTIC(NumMovedCalls, "Number of call insts hoisted or sunk");
+STATISTIC(NumPromoted  , "Number of memory locations promoted to registers");
+
 namespace {
   cl::opt<bool>
   DisablePromotion("disable-licm-promotion", cl::Hidden,
                    cl::desc("Disable memory promotion in LICM pass"));
 
-  Statistic NumSunk("licm", "Number of instructions sunk out of loop");
-  Statistic NumHoisted("licm", "Number of instructions hoisted out of loop");
-  Statistic NumMovedLoads("licm", "Number of load insts hoisted or sunk");
-  Statistic NumMovedCalls("licm", "Number of call insts hoisted or sunk");
-  Statistic NumPromoted("licm",
-                          "Number of memory locations promoted to registers");
-
   struct LICM : public FunctionPass {
     virtual bool runOnFunction(Function &F);