diff options
author | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:09:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-12-19 22:09:18 +0000 |
commit | 86453c52ba02e743d29c08456e51006500041456 (patch) | |
tree | cdc95741b806ce83c1cd6da867e1f5157610d109 /lib/Transforms/IPO/FunctionResolution.cpp | |
parent | 438e08e35796ca2e4d2be71185b34e11c2d12c80 (diff) |
Eliminate static ctors due to Statistic objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32693 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/FunctionResolution.cpp')
-rw-r--r-- | lib/Transforms/IPO/FunctionResolution.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Transforms/IPO/FunctionResolution.cpp b/lib/Transforms/IPO/FunctionResolution.cpp index 6f1eea0276..2ffbc7b9ae 100644 --- a/lib/Transforms/IPO/FunctionResolution.cpp +++ b/lib/Transforms/IPO/FunctionResolution.cpp @@ -18,6 +18,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "funcresolve" #include "llvm/Transforms/IPO.h" #include "llvm/Module.h" #include "llvm/DerivedTypes.h" @@ -31,10 +32,10 @@ #include <algorithm> using namespace llvm; -namespace { - Statistic NumResolved("funcresolve", "Number of varargs functions resolved"); - Statistic NumGlobals("funcresolve", "Number of global variables resolved"); +STATISTIC(NumResolved, "Number of varargs functions resolved"); +STATISTIC(NumGlobals, "Number of global variables resolved"); +namespace { struct FunctionResolvingPass : public ModulePass { virtual void getAnalysisUsage(AnalysisUsage &AU) const { AU.addRequired<TargetData>(); |