diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
commit | 0e5f499638c8d277b9dc4a4385712177c53b5681 (patch) | |
tree | 807238536efcc3de8e754e1eec574fae52bdd05b /lib/Transforms/Scalar/ADCE.cpp | |
parent | 193c88cb56d872a26fc32a43ccf9204c475984f3 (diff) | |
download | external_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/ADCE.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ADCE.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/ADCE.cpp b/lib/Transforms/Scalar/ADCE.cpp index 536b61f..825c781 100644 --- a/lib/Transforms/Scalar/ADCE.cpp +++ b/lib/Transforms/Scalar/ADCE.cpp @@ -13,6 +13,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "adce" #include "llvm/Transforms/Scalar.h" #include "llvm/Constants.h" #include "llvm/Instructions.h" @@ -29,11 +30,11 @@ #include <algorithm> using namespace llvm; -namespace { - Statistic NumBlockRemoved("adce", "Number of basic blocks removed"); - Statistic NumInstRemoved ("adce", "Number of instructions removed"); - Statistic NumCallRemoved ("adce", "Number of calls and invokes removed"); +STATISTIC(NumBlockRemoved, "Number of basic blocks removed"); +STATISTIC(NumInstRemoved , "Number of instructions removed"); +STATISTIC(NumCallRemoved , "Number of calls and invokes removed"); +namespace { //===----------------------------------------------------------------------===// // ADCE Class // |