forked from OSchip/llvm-project
parent
734b74fefe
commit
acb606ff33
|
@ -424,7 +424,7 @@ public:
|
||||||
|
|
||||||
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It
|
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It
|
||||||
/// returns the maximum id.
|
/// returns the maximum id.
|
||||||
int AssignNodeIds();
|
unsigned AssignNodeIds();
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
|
|
|
@ -2700,8 +2700,8 @@ void SelectionDAG::ReplaceAllUsesOfValueWith(SDOperand From, SDOperand To,
|
||||||
|
|
||||||
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It returns
|
/// AssignNodeIds - Assign a unique node id for each node in the DAG. It returns
|
||||||
/// the maximum id.
|
/// the maximum id.
|
||||||
int SelectionDAG::AssignNodeIds() {
|
unsigned SelectionDAG::AssignNodeIds() {
|
||||||
int Id = 0;
|
unsigned Id = 0;
|
||||||
for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){
|
for (allnodes_iterator I = allnodes_begin(), E = allnodes_end(); I != E; ++I){
|
||||||
SDNode *N = I;
|
SDNode *N = I;
|
||||||
N->setNodeId(Id++);
|
N->setNodeId(Id++);
|
||||||
|
|
Loading…
Reference in New Issue