summaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Scalar/LoopUnroll.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-12-19 21:40:18 +0000
committerChris Lattner <sabre@nondot.org>2006-12-19 21:40:18 +0000
commit0e5f499638c8d277b9dc4a4385712177c53b5681 (patch)
tree807238536efcc3de8e754e1eec574fae52bdd05b /lib/Transforms/Scalar/LoopUnroll.cpp
parent193c88cb56d872a26fc32a43ccf9204c475984f3 (diff)
downloadexternal_llvm-0e5f499638c8d277b9dc4a4385712177c53b5681.zip
external_llvm-0e5f499638c8d277b9dc4a4385712177c53b5681.tar.gz
external_llvm-0e5f499638c8d277b9dc4a4385712177c53b5681.tar.bz2
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32690 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/LoopUnroll.cpp')
-rw-r--r--lib/Transforms/Scalar/LoopUnroll.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/LoopUnroll.cpp b/lib/Transforms/Scalar/LoopUnroll.cpp
index 45a4899..603ba6a 100644
--- a/lib/Transforms/Scalar/LoopUnroll.cpp
+++ b/lib/Transforms/Scalar/LoopUnroll.cpp
@@ -36,9 +36,9 @@
#include <algorithm>
using namespace llvm;
-namespace {
- Statistic NumUnrolled("loop-unroll", "Number of loops completely unrolled");
+STATISTIC(NumUnrolled, "Number of loops completely unrolled");
+namespace {
cl::opt<unsigned>
UnrollThreshold("unroll-threshold", cl::init(100), cl::Hidden,
cl::desc("The cut-off point for loop unrolling"));