Switch register allocator over to using LoopInfo directly instead of indirectly through LoopDepthCalculator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1696 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 8efa757..de8d793 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -37,7 +37,7 @@
class MachineRegInfo;
class MethodLiveVarInfo;
class MachineInstr;
-namespace cfg { class LoopDepthCalculator; }
+namespace cfg { class LoopInfo; }
//----------------------------------------------------------------------------
// Class AddedInstrns:
@@ -80,13 +80,13 @@
AddedInstrMapType AddedInstrMap; // to store instrns added in this phase
- cfg::LoopDepthCalculator *LoopDepthCalc; // to calculate loop depths
+ cfg::LoopInfo *LoopDepthCalc; // to calculate loop depths
ReservedColorListType ResColList; // A set of reserved regs if desired.
// currently not used
public:
PhyRegAlloc(Method *M, const TargetMachine& TM, MethodLiveVarInfo *Lvi,
- cfg::LoopDepthCalculator *LoopDepthCalc);
+ cfg::LoopInfo *LoopDepthCalc);
~PhyRegAlloc();
// main method called for allocating registers