mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-23 01:25:32 +00:00
eliminate static ctors from Statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
||||
#define DEBUG_TYPE "globalsmodref-aa"
|
||||
#include "llvm/Analysis/Passes.h"
|
||||
#include "llvm/Module.h"
|
||||
#include "llvm/Pass.h"
|
||||
@@ -29,23 +30,14 @@
|
||||
#include <set>
|
||||
using namespace llvm;
|
||||
|
||||
STATISTIC(NumNonAddrTakenGlobalVars,
|
||||
"Number of global vars without address taken");
|
||||
STATISTIC(NumNonAddrTakenFunctions,"Number of functions without address taken");
|
||||
STATISTIC(NumNoMemFunctions, "Number of functions that do not access memory");
|
||||
STATISTIC(NumReadMemFunctions, "Number of functions that only read memory");
|
||||
STATISTIC(NumIndirectGlobalVars, "Number of indirect global objects");
|
||||
|
||||
namespace {
|
||||
Statistic
|
||||
NumNonAddrTakenGlobalVars("globalsmodref-aa",
|
||||
"Number of global vars without address taken");
|
||||
Statistic
|
||||
NumNonAddrTakenFunctions("globalsmodref-aa",
|
||||
"Number of functions without address taken");
|
||||
Statistic
|
||||
NumNoMemFunctions("globalsmodref-aa",
|
||||
"Number of functions that do not access memory");
|
||||
Statistic
|
||||
NumReadMemFunctions("globalsmodref-aa",
|
||||
"Number of functions that only read memory");
|
||||
Statistic
|
||||
NumIndirectGlobalVars("globalsmodref-aa",
|
||||
"Number of indirect global objects");
|
||||
|
||||
/// FunctionRecord - One instance of this structure is stored for every
|
||||
/// function in the program. Later, the entries for these functions are
|
||||
/// removed if the function is found to call an external function (in which
|
||||
|
Reference in New Issue
Block a user