summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-24 23:41:44 +0000
committerOwen Anderson <resistor@mac.com>2009-06-24 23:41:44 +0000
commit816e2833c49928a071e9aa0f45fa5e15a6474dd3 (patch)
tree504241fafd8508d53a8db2ff9d1bf1bc5740e4a9 /llvm/lib/CodeGen
parenta10e519e04fc3f2bffaa9b89fcd2edf825d25b47 (diff)
downloadbcm5719-llvm-816e2833c49928a071e9aa0f45fa5e15a6474dd3.tar.gz
bcm5719-llvm-816e2833c49928a071e9aa0f45fa5e15a6474dd3.zip
Fewer static variables, part 3 of many.
llvm-svn: 74140
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/IfConversion.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp
index 4d5c3c2c7dc..d5e7ea59a74 100644
--- a/llvm/lib/CodeGen/IfConversion.cpp
+++ b/llvm/lib/CodeGen/IfConversion.cpp
@@ -144,9 +144,10 @@ namespace {
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 @@ bool IfConverter::runOnMachineFunction(MachineFunction &MF) {
TII = MF.getTarget().getInstrInfo();
if (!TII) return false;
- static int FnNum = -1;
DOUT << "\nIfcvt: function (" << ++FnNum << ") \'"
<< MF.getFunction()->getName() << "\'";
OpenPOWER on IntegriCloud