mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
Detemplatize the Statistic class. The only type it is instantiated with
is 'unsigned'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32279 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,13 +21,13 @@
|
||||
using namespace llvm;
|
||||
|
||||
namespace {
|
||||
Statistic<> TotalInsts ("instcount", "Number of instructions (of all types)");
|
||||
Statistic<> TotalBlocks("instcount", "Number of basic blocks");
|
||||
Statistic<> TotalFuncs ("instcount", "Number of non-external functions");
|
||||
Statistic<> TotalMemInst("instcount", "Number of memory instructions");
|
||||
Statistic TotalInsts ("instcount", "Number of instructions (of all types)");
|
||||
Statistic TotalBlocks("instcount", "Number of basic blocks");
|
||||
Statistic TotalFuncs ("instcount", "Number of non-external functions");
|
||||
Statistic TotalMemInst("instcount", "Number of memory instructions");
|
||||
|
||||
#define HANDLE_INST(N, OPCODE, CLASS) \
|
||||
Statistic<> Num##OPCODE##Inst("instcount", "Number of " #OPCODE " insts");
|
||||
Statistic Num##OPCODE##Inst("instcount", "Number of " #OPCODE " insts");
|
||||
|
||||
#include "llvm/Instruction.def"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user