mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Fewer static variables, part 3 of many.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74140 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -144,9 +144,10 @@ namespace {
|
|||||||
const TargetLowering *TLI;
|
const TargetLowering *TLI;
|
||||||
const TargetInstrInfo *TII;
|
const TargetInstrInfo *TII;
|
||||||
bool MadeChange;
|
bool MadeChange;
|
||||||
|
int FnNum;
|
||||||
public:
|
public:
|
||||||
static char ID;
|
static char ID;
|
||||||
IfConverter() : MachineFunctionPass(&ID) {}
|
IfConverter() : MachineFunctionPass(&ID), FnNum(-1) {}
|
||||||
|
|
||||||
virtual bool runOnMachineFunction(MachineFunction &MF);
|
virtual bool runOnMachineFunction(MachineFunction &MF);
|
||||||
virtual const char *getPassName() const { return "If Converter"; }
|
virtual const char *getPassName() const { return "If Converter"; }
|
||||||
@@ -225,7 +226,6 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
|
|||||||
TII = MF.getTarget().getInstrInfo();
|
TII = MF.getTarget().getInstrInfo();
|
||||||
if (!TII) return false;
|
if (!TII) return false;
|
||||||
|
|
||||||
static int FnNum = -1;
|
|
||||||
DOUT << "\nIfcvt: function (" << ++FnNum << ") \'"
|
DOUT << "\nIfcvt: function (" << ++FnNum << ") \'"
|
||||||
<< MF.getFunction()->getName() << "\'";
|
<< MF.getFunction()->getName() << "\'";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user