Add a couple asserts so it will be easier to debug if we accidentally pass indexed...
[oota-llvm.git] / lib / CodeGen / SelectionDAG / ScheduleDAGSDNodes.h
index b5f68f3055cf9901ef648d8058409dfad41b5cc3..9c27b2ea02ec2b6d46b976e0118fb2562b6308e3 100644 (file)
@@ -135,6 +135,14 @@ namespace llvm {
         return ValueType;
       }
 
+      const SDNode *GetNode() const {
+        return Node;
+      }
+
+      unsigned GetIdx() const {
+        return DefIdx-1;
+      }
+
       void Advance();
     private:
       void InitNodeNumDefs();