From 29f4c06b7f12b0da25ee022014bd7e2a72b11142 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 Feb 2002 07:13:04 +0000 Subject: [PATCH] Add a class forward decl git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1637 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/RegAlloc/PhyRegAlloc.h | 5 ++--- lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 9d9aa53ddf2..4d009cfcbea 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -38,9 +38,8 @@ #include "llvm/CodeGen/LiveRangeInfo.h" #include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h" #include "llvm/Analysis/LoopDepth.h" - #include - +class MachineCodeForMethod; //---------------------------------------------------------------------------- // Class AddedInstrns: @@ -75,7 +74,7 @@ class PhyRegAlloc: public NonCopyable std::vector RegClassList; // vector of register classes const TargetMachine &TM; // target machine const Method* Meth; // name of the method we work on - MachineCodeForMethod& mcInfo; // 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) diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index 9d9aa53ddf2..4d009cfcbea 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -38,9 +38,8 @@ #include "llvm/CodeGen/LiveRangeInfo.h" #include "llvm/Analysis/LiveVar/MethodLiveVarInfo.h" #include "llvm/Analysis/LoopDepth.h" - #include - +class MachineCodeForMethod; //---------------------------------------------------------------------------- // Class AddedInstrns: @@ -75,7 +74,7 @@ class PhyRegAlloc: public NonCopyable std::vector RegClassList; // vector of register classes const TargetMachine &TM; // target machine const Method* Meth; // name of the method we work on - MachineCodeForMethod& mcInfo; // 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)