diff options
Diffstat (limited to 'lib/Transforms/Scalar/ConstantProp.cpp')
-rw-r--r-- | lib/Transforms/Scalar/ConstantProp.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ConstantProp.cpp b/lib/Transforms/Scalar/ConstantProp.cpp index 54ccccce7c..d888a10c72 100644 --- a/lib/Transforms/Scalar/ConstantProp.cpp +++ b/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); |