Use higher level method
[oota-llvm.git] / lib / Target / SparcV9 / RegAlloc / LiveRange.h
index 6c2952af6b9dbad56a406a8af4b70e7c508c1319..71eba1513bd05db181e1a07f748dda22a3aa309e 100644 (file)
 #define LIVE_RANGE_H
 
 #include "llvm/Analysis/LiveVar/ValueSet.h"
-#include "llvm/Type.h"
-#include <iostream>
+#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
@@ -91,6 +91,9 @@ public:
   inline void setCallInterference() { 
     doesSpanAcrossCalls = 1;
   }
+  inline void clearCallInterference() { 
+    doesSpanAcrossCalls = 0;
+  }
 
   inline bool isCallInterference() const { 
     return doesSpanAcrossCalls == 1; 
@@ -134,17 +137,9 @@ public:
     return (*begin())->getType();  // set's don't have a front
   }
   
-  inline Type::PrimitiveID getTypeID() const {
-    return getType()->getPrimitiveID();
-  }
-
   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 {