Eliminate static ctors due to Statistic objects

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32693 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2006-12-19 22:09:18 +00:00
parent 438e08e357
commit 86453c52ba
16 changed files with 71 additions and 85 deletions

View File

@@ -47,14 +47,11 @@
#include <set>
using namespace llvm;
namespace {
Statistic NumArgumentsPromoted("argpromotion",
"Number of pointer arguments promoted");
Statistic NumAggregatesPromoted("argpromotion",
"Number of aggregate arguments promoted");
Statistic NumArgumentsDead("argpromotion",
"Number of dead pointer args eliminated");
STATISTIC(NumArgumentsPromoted , "Number of pointer arguments promoted");
STATISTIC(NumAggregatesPromoted, "Number of aggregate arguments promoted");
STATISTIC(NumArgumentsDead , "Number of dead pointer args eliminated");
namespace {
/// ArgPromotion - The 'by reference' to 'by value' argument promotion pass.
///
struct ArgPromotion : public CallGraphSCCPass {