diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:30:33 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:30:33 +0000 |
commit | 3b27d68c6af2582df0962557f1fe5c3f70f46e3f (patch) | |
tree | 7e277599fc296b352ed0dec8ea930c2f6c7f094a /lib/Analysis/IPA/Andersens.cpp | |
parent | cbfdd1f840630d8a899020e7fb05aa7fbdb52963 (diff) |
eliminate static ctors from Statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32697 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/IPA/Andersens.cpp')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 69462279a9..5d2841187a 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -64,18 +64,13 @@ #include <set> using namespace llvm; -namespace { - Statistic - NumIters("anders-aa", "Number of iterations to reach convergence"); - Statistic - NumConstraints("anders-aa", "Number of constraints"); - Statistic - NumNodes("anders-aa", "Number of nodes"); - Statistic - NumEscapingFunctions("anders-aa", "Number of internal functions that escape"); - Statistic - NumIndirectCallees("anders-aa", "Number of indirect callees found"); +STATISTIC(NumIters , "Number of iterations to reach convergence"); +STATISTIC(NumConstraints , "Number of constraints"); +STATISTIC(NumNodes , "Number of nodes"); +STATISTIC(NumEscapingFunctions, "Number of internal functions that escape"); +STATISTIC(NumIndirectCallees , "Number of indirect callees found"); +namespace { class Andersens : public ModulePass, public AliasAnalysis, private InstVisitor<Andersens> { /// Node class - This class is used to represent a memory object in the |