summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/ConstantProp.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
commit79a42ac9417680cb50d2e75e547385a080c596f7 (patch)
tree3c6ec6ffe81515978be4f7697fd6449f02677c71 /llvm/lib/Transforms/Scalar/ConstantProp.cpp
parent91fc1e57807f4429cc89f330de75f09d52dee4e3 (diff)
downloadbcm5719-llvm-79a42ac9417680cb50d2e75e547385a080c596f7.tar.gz
bcm5719-llvm-79a42ac9417680cb50d2e75e547385a080c596f7.zip
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
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/ConstantProp.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/ConstantProp.cpp b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
index 54ccccce7c1..d888a10c727 100644
--- a/llvm/lib/Transforms/Scalar/ConstantProp.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstantProp.cpp
@@ -18,6 +18,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "constprop"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Constant.h"
@@ -28,9 +29,9 @@
#include <set>
using namespace llvm;
-namespace {
- Statistic NumInstKilled("constprop", "Number of instructions killed");
+STATISTIC(NumInstKilled, "Number of instructions killed");
+namespace {
struct ConstantPropagation : public FunctionPass {
bool runOnFunction(Function &F);
OpenPOWER on IntegriCloud