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/TwoAddressInstructionPass.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/TwoAddressInstructionPass.cpp')
-rw-r--r-- | lib/CodeGen/TwoAddressInstructionPass.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index be19e46168..ba768ba19f 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp @@ -43,14 +43,11 @@ #include "llvm/ADT/STLExtras.h" using namespace llvm; -namespace { - static Statistic NumTwoAddressInstrs("twoaddressinstruction", - "Number of two-address instructions"); - static Statistic NumCommuted("twoaddressinstruction", - "Number of instructions commuted to coalesce"); - static Statistic NumConvertedTo3Addr("twoaddressinstruction", - "Number of instructions promoted to 3-address"); +STATISTIC(NumTwoAddressInstrs, "Number of two-address instructions"); +STATISTIC(NumCommuted , "Number of instructions commuted to coalesce"); +STATISTIC(NumConvertedTo3Addr, "Number of instructions promoted to 3-address"); +namespace { struct VISIBILITY_HIDDEN TwoAddressInstructionPass : public MachineFunctionPass { virtual void getAnalysisUsage(AnalysisUsage &AU) const; |