summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/SimplifyCFG.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/SimplifyCFG.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/SimplifyCFG.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/SimplifyCFG.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
index 175dd3b3bf6..f363a3a5c58 100644
--- a/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Scalar/SimplifyCFG.cpp
@@ -18,6 +18,7 @@
//
//===----------------------------------------------------------------------===//
+#define DEBUG_TYPE "simplifycfg"
#include "llvm/Transforms/Scalar.h"
#include "llvm/Transforms/Utils/Local.h"
#include "llvm/Constants.h"
@@ -29,9 +30,9 @@
#include <set>
using namespace llvm;
-namespace {
- Statistic NumSimpl("cfgsimplify", "Number of blocks simplified");
+STATISTIC(NumSimpl, "Number of blocks simplified");
+namespace {
struct CFGSimplifyPass : public FunctionPass {
virtual bool runOnFunction(Function &F);
};
OpenPOWER on IntegriCloud