diff options
Diffstat (limited to 'llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 080d8115ff9..160128eba1d 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -19,6 +19,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "scalarrepl" #include "llvm/Transforms/Scalar.h" #include "llvm/Constants.h" #include "llvm/DerivedTypes.h" @@ -36,12 +37,11 @@ #include "llvm/ADT/StringExtras.h" using namespace llvm; -namespace { - Statistic NumReplaced("scalarrepl", "Number of allocas broken up"); - Statistic NumPromoted("scalarrepl", "Number of allocas promoted"); - Statistic NumConverted("scalarrepl", - "Number of aggregates converted to scalar"); +STATISTIC(NumReplaced, "Number of allocas broken up"); +STATISTIC(NumPromoted, "Number of allocas promoted"); +STATISTIC(NumConverted, "Number of aggregates converted to scalar"); +namespace { struct VISIBILITY_HIDDEN SROA : public FunctionPass { bool runOnFunction(Function &F); |