diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:17:40 +0000 |
commit | d216e8ba60494caacf919cbf5fef110d48f0d162 (patch) | |
tree | a6e2c243cbac1f503451d51a705d0aa4d0ea012a /lib/Transforms/Utils/Mem2Reg.cpp | |
parent | 86453c52ba02e743d29c08456e51006500041456 (diff) |
switch more statistics over to STATISTIC, eliminating static ctors. Also,
delete some dead ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Mem2Reg.cpp')
-rw-r--r-- | lib/Transforms/Utils/Mem2Reg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/Mem2Reg.cpp b/lib/Transforms/Utils/Mem2Reg.cpp index e0f79dd36c..78117fb11e 100644 --- a/lib/Transforms/Utils/Mem2Reg.cpp +++ b/lib/Transforms/Utils/Mem2Reg.cpp @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "mem2reg" #include "llvm/Transforms/Scalar.h" #include "llvm/Transforms/Utils/PromoteMemToReg.h" #include "llvm/Transforms/Utils/UnifyFunctionExitNodes.h" @@ -23,9 +24,9 @@ #include "llvm/Support/Compiler.h" using namespace llvm; -namespace { - Statistic NumPromoted("mem2reg", "Number of alloca's promoted"); +STATISTIC(NumPromoted, "Number of alloca's promoted"); +namespace { struct VISIBILITY_HIDDEN PromotePass : public FunctionPass { // runOnFunction - To run this pass, first we calculate the alloca // instructions that are safe for promotion, then we promote each one. |