projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add a couple asserts so it will be easier to debug if we accidentally pass indexed...
[oota-llvm.git]
/
lib
/
CodeGen
/
SelectionDAG
/
ScheduleDAGSDNodes.h
diff --git
a/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
b/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
index b5f68f3055cf9901ef648d8058409dfad41b5cc3..9c27b2ea02ec2b6d46b976e0118fb2562b6308e3 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
+++ b/
lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.h
@@
-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();