diff options
| author | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 21:40:18 +0000 |
| commit | 79a42ac9417680cb50d2e75e547385a080c596f7 (patch) | |
| tree | 3c6ec6ffe81515978be4f7697fd6449f02677c71 /llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | |
| parent | 91fc1e57807f4429cc89f330de75f09d52dee4e3 (diff) | |
| download | bcm5719-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/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); |

