The word `dependent' has no `a'.
[oota-llvm.git] / lib / CodeGen / RegAlloc / LiveRange.h
index 28277bd9f161d1675d97500e1744e019e10f2a1a..c3caa295717b937320a510bdbb6b4fdc87b1cce8 100644 (file)
@@ -1,4 +1,4 @@
-//===-- LiveRange.h - Store info about a live range --------------*- C++ -*--=//
+//===-- LiveRange.h - Store info about a live range -------------*- C++ -*-===//
 //
 // Implements a live range using a ValueSet. A LiveRange is a simple set
 // of Values. 
 #ifndef LIVE_RANGE_H
 #define LIVE_RANGE_H
 
-#include "llvm/Analysis/LiveVar/ValueSet.h"
+#include "llvm/CodeGen/ValueSet.h"
 #include "llvm/Value.h"
 
 class RegClass;
 class IGNode;
-class Type;
 
 class LiveRange : public ValueSet {
   RegClass *MyRegClass;       // register classs (e.g., int, FP) for this LR
@@ -81,6 +80,7 @@ public:
   void setRegClass(RegClass *RC) { MyRegClass = RC; }
 
   RegClass *getRegClass() const { assert(MyRegClass); return MyRegClass; }
+  unsigned getRegClassID() const;
 
   bool hasColor() const { return Color != -1; }
   
@@ -101,7 +101,7 @@ public:
 
   inline void markForSpill() { mustSpill = true; }
 
-  inline bool isMarkedForSpill() { return mustSpill; }
+  inline bool isMarkedForSpill() const { return mustSpill; }
 
   inline void setSpillOffFromFP(int StackOffset) {
     assert(mustSpill && "This LR is not spilled");
@@ -140,10 +140,6 @@ public:
   inline void setSuggestedColor(int Col) {
     if (SuggestedColor == -1)
       SuggestedColor = Col;
-#if 0
-    else if (DEBUG_RA) 
-      std::cerr << "Already has a suggested color " << Col << "\n";
-#endif
   }
 
   inline unsigned getSuggestedColor() const {