Simplify getSymbolFlags.
[oota-llvm.git] / include / llvm / CodeGen / LiveInterval.h
index d28cb048223157c64c4ce05b2f7e58b9e8498946..3a9fef6fbd78176b9aac3a4d868590fad2e364a5 100644 (file)
@@ -527,6 +527,8 @@ namespace llvm {
   /// or stack slot.
   class LiveInterval : public LiveRange {
   public:
+    typedef LiveRange super;
+
     const unsigned reg;  // the register or stack slot of this interval.
     float weight;        // weight of this interval
 
@@ -539,12 +541,12 @@ namespace llvm {
 
     /// isSpillable - Can this interval be spilled?
     bool isSpillable() const {
-      return weight != HUGE_VALF;
+      return weight != llvm::huge_valf;
     }
 
     /// markNotSpillable - Mark interval as not spillable
     void markNotSpillable() {
-      weight = HUGE_VALF;
+      weight = llvm::huge_valf;
     }
 
     bool operator<(const LiveInterval& other) const {
@@ -554,6 +556,9 @@ namespace llvm {
               (thisIndex == otherIndex && reg < other.reg);
     }
 
+    void print(raw_ostream &OS) const;
+    void dump() const;
+
   private:
     LiveInterval& operator=(const LiveInterval& rhs) LLVM_DELETED_FUNCTION;