diff options
| author | Owen Anderson <resistor@mac.com> | 2009-06-24 23:41:44 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-06-24 23:41:44 +0000 |
| commit | 03f2a7b881ceb3220222eac4747abf271a6ec973 (patch) | |
| tree | 630b41cc117a924d7c620953462488cc359e58de /lib/CodeGen | |
| parent | a0527a92adae8c6e3db84cafcef81921e5fe790c (diff) | |
| download | external_llvm-03f2a7b881ceb3220222eac4747abf271a6ec973.zip external_llvm-03f2a7b881ceb3220222eac4747abf271a6ec973.tar.gz external_llvm-03f2a7b881ceb3220222eac4747abf271a6ec973.tar.bz2 | |
Fewer static variables, part 3 of many.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74140 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
| -rw-r--r-- | lib/CodeGen/IfConversion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index 4d5c3c2..d5e7ea5 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/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() << "\'"; |
