aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.h5
-rw-r--r--lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h5
2 files changed, 4 insertions, 6 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index 9d9aa53ddf..4d009cfcbe 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 <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
- 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 9d9aa53ddf..4d009cfcbe 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 <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
- 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)