summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-15 19:56:21 +0000
committerChris Lattner <sabre@nondot.org>2003-01-15 19:56:21 +0000
commit19a7cb2240bad7525680a6c9a930f63e1a86f8b1 (patch)
tree3d5dcb264a17ccc65622c2269c70d348c1aada34 /llvm/lib/CodeGen
parent90fc6654890e056175ce9824114c4487616de100 (diff)
downloadbcm5719-llvm-19a7cb2240bad7525680a6c9a930f63e1a86f8b1.tar.gz
bcm5719-llvm-19a7cb2240bad7525680a6c9a930f63e1a86f8b1.zip
Remvoe dependency on RegClass.h
llvm-svn: 5306
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index ea4f562009d..c55f8e0009b 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -19,8 +19,8 @@
#ifndef PHY_REG_ALLOC_H
#define PHY_REG_ALLOC_H
-#include "llvm/CodeGen/RegClass.h"
#include "llvm/CodeGen/LiveRangeInfo.h"
+#include "Support/NonCopyable.h"
#include <map>
class MachineFunction;
@@ -28,6 +28,7 @@ class TargetRegInfo;
class FunctionLiveVarInfo;
class MachineInstr;
class LoopInfo;
+class RegClass;
//----------------------------------------------------------------------------
// Class AddedInstrns:
@@ -49,7 +50,7 @@ struct AddedInstrns {
// registers for a Function.
//----------------------------------------------------------------------------
-class PhyRegAlloc: public NonCopyable {
+class PhyRegAlloc : public NonCopyable {
std::vector<RegClass *> RegClassList; // vector of register classes
const TargetMachine &TM; // target machine
const Function *Fn; // name of the function we work on
@@ -66,7 +67,7 @@ class PhyRegAlloc: public NonCopyable {
AddedInstrns AddedInstrAtEntry; // to store instrns added at entry
LoopInfo *LoopDepthCalc; // to calculate loop depths
- ReservedColorListType ResColList; // A set of reserved regs if desired.
+ std::vector<unsigned> ResColList; // A set of reserved regs if desired.
// currently not used
public:
OpenPOWER on IntegriCloud