[llvm-commits] [llvm] r74140 - /llvm/trunk/lib/CodeGen/IfConversion.cpp
Owen Anderson
resistor at mac.com
Wed Jun 24 16:42:17 PDT 2009
Author: resistor
Date: Wed Jun 24 18:41:44 2009
New Revision: 74140
URL: http://llvm.org/viewvc/llvm-project?rev=74140&view=rev
Log:
Fewer static variables, part 3 of many.
Modified:
llvm/trunk/lib/CodeGen/IfConversion.cpp
Modified: llvm/trunk/lib/CodeGen/IfConversion.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/IfConversion.cpp?rev=74140&r1=74139&r2=74140&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/IfConversion.cpp (original)
+++ llvm/trunk/lib/CodeGen/IfConversion.cpp Wed Jun 24 18:41:44 2009
@@ -144,9 +144,10 @@
const TargetLowering *TLI;
const TargetInstrInfo *TII;
bool MadeChange;
+ int FnNum;
public:
static char ID;
- IfConverter() : MachineFunctionPass(&ID) {}
+ IfConverter() : MachineFunctionPass(&ID), FnNum(-1) {}
virtual bool runOnMachineFunction(MachineFunction &MF);
virtual const char *getPassName() const { return "If Converter"; }
@@ -225,7 +226,6 @@
TII = MF.getTarget().getInstrInfo();
if (!TII) return false;
- static int FnNum = -1;
DOUT << "\nIfcvt: function (" << ++FnNum << ") \'"
<< MF.getFunction()->getName() << "\'";
More information about the llvm-commits
mailing list