mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +00:00
Eliminate static ctors due to Statistic objects
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32693 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user