diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:41:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:41:21 +0000 |
commit | cd3245ac45c595da96bb768a55cddc356dff55fe (patch) | |
tree | 2cfe9ce9a5871f25e319518822d6b882e395c252 /lib/CodeGen/VirtRegMap.cpp | |
parent | 3b27d68c6af2582df0962557f1fe5c3f70f46e3f (diff) |
Eliminate static ctors from Statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/VirtRegMap.cpp')
-rw-r--r-- | lib/CodeGen/VirtRegMap.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/CodeGen/VirtRegMap.cpp b/lib/CodeGen/VirtRegMap.cpp index 26b6eebf42..2c93e09e3f 100644 --- a/lib/CodeGen/VirtRegMap.cpp +++ b/lib/CodeGen/VirtRegMap.cpp @@ -32,14 +32,14 @@ #include <algorithm> using namespace llvm; -namespace { - static Statistic NumSpills("spiller", "Number of register spills"); - static Statistic NumStores("spiller", "Number of stores added"); - static Statistic NumLoads ("spiller", "Number of loads added"); - static Statistic NumReused("spiller", "Number of values reused"); - static Statistic NumDSE ("spiller", "Number of dead stores elided"); - static Statistic NumDCE ("spiller", "Number of copies elided"); +STATISTIC(NumSpills, "Number of register spills"); +STATISTIC(NumStores, "Number of stores added"); +STATISTIC(NumLoads , "Number of loads added"); +STATISTIC(NumReused, "Number of values reused"); +STATISTIC(NumDSE , "Number of dead stores elided"); +STATISTIC(NumDCE , "Number of copies elided"); +namespace { enum SpillerName { simple, local }; static cl::opt<SpillerName> |