Add a class forward decl
authorChris Lattner <sabre@nondot.org>
Sun, 3 Feb 2002 07:13:04 +0000 (07:13 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 3 Feb 2002 07:13:04 +0000 (07:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1637 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/RegAlloc/PhyRegAlloc.h
lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h

index 9d9aa53ddf249deae32dbf3f71f007dff4ab0ab7..4d009cfcbea71bbaff895aaef8a584214f098b44 100644 (file)
@@ -38,9 +38,8 @@
 #include "llvm/CodeGen/LiveRangeInfo.h"
 #include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
 #include "llvm/Analysis/LoopDepth.h"
-
 #include <deque>
-
+class MachineCodeForMethod;
 
 //----------------------------------------------------------------------------
 // Class AddedInstrns:
@@ -75,7 +74,7 @@ class PhyRegAlloc: public NonCopyable
   std::vector<RegClass *> RegClassList; // vector of register classes
   const TargetMachine &TM;              // target machine
   const Method* Meth;                   // name of the method we work on
-  MachineCodeForMethodmcInfo;         // descriptor for method's native code
+  MachineCodeForMethod &mcInfo;         // descriptor for method's native code
   MethodLiveVarInfo *const LVI;         // LV information for this method 
                                         // (already computed for BBs) 
   LiveRangeInfo LRI;                    // LR info  (will be computed)
index 9d9aa53ddf249deae32dbf3f71f007dff4ab0ab7..4d009cfcbea71bbaff895aaef8a584214f098b44 100644 (file)
@@ -38,9 +38,8 @@
 #include "llvm/CodeGen/LiveRangeInfo.h"
 #include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h"
 #include "llvm/Analysis/LoopDepth.h"
-
 #include <deque>
-
+class MachineCodeForMethod;
 
 //----------------------------------------------------------------------------
 // Class AddedInstrns:
@@ -75,7 +74,7 @@ class PhyRegAlloc: public NonCopyable
   std::vector<RegClass *> RegClassList; // vector of register classes
   const TargetMachine &TM;              // target machine
   const Method* Meth;                   // name of the method we work on
-  MachineCodeForMethodmcInfo;         // descriptor for method's native code
+  MachineCodeForMethod &mcInfo;         // descriptor for method's native code
   MethodLiveVarInfo *const LVI;         // LV information for this method 
                                         // (already computed for BBs) 
   LiveRangeInfo LRI;                    // LR info  (will be computed)