RAGreedy: Keep track of allocated PhysRegs internally
[oota-llvm.git] / include / llvm / CodeGen / LiveIntervalUnion.h
index 967f0cbac7194468d2c5fa522beeb7c7d07924b2..f0f1637dc92d0622bb1398749d01564ed082badc 100644 (file)
@@ -203,6 +203,11 @@ public:
       assert(idx <  Size && "idx out of bounds");
       return LIUs[idx];
     }
       assert(idx <  Size && "idx out of bounds");
       return LIUs[idx];
     }
+
+    const LiveIntervalUnion& operator[](unsigned Idx) const {
+      assert(Idx < Size && "Idx out of bounds");
+      return LIUs[Idx];
+    }
   };
 };
 
   };
 };