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/Internalize.cpp | |
parent | 438e08e35796ca2e4d2be71185b34e11c2d12c80 (diff) | |
download | llvm-86453c52ba02e743d29c08456e51006500041456.tar.gz llvm-86453c52ba02e743d29c08456e51006500041456.tar.bz2 llvm-86453c52ba02e743d29c08456e51006500041456.tar.xz |
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/Internalize.cpp')
-rw-r--r-- | lib/Transforms/IPO/Internalize.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/Transforms/IPO/Internalize.cpp b/lib/Transforms/IPO/Internalize.cpp index f43a27f698..bf99235fb8 100644 --- a/lib/Transforms/IPO/Internalize.cpp +++ b/lib/Transforms/IPO/Internalize.cpp @@ -13,6 +13,7 @@ // //===----------------------------------------------------------------------===// +#define DEBUG_TYPE "internalize" #include "llvm/Transforms/IPO.h" #include "llvm/Pass.h" #include "llvm/Module.h" @@ -23,9 +24,10 @@ #include <set> using namespace llvm; +STATISTIC(NumFunctions, "Number of functions internalized"); +STATISTIC(NumGlobals , "Number of global vars internalized"); + namespace { - Statistic NumFunctions("internalize", "Number of functions internalized"); - Statistic NumGlobals ("internalize", "Number of global vars internalized"); // APIFile - A file which contains a list of symbols that should not be marked // external. |