Index: src/compiler/graph-visualizer.cc |
diff --git a/src/compiler/graph-visualizer.cc b/src/compiler/graph-visualizer.cc |
index 0bad333d842c00c5860e4f448a80845e5e53d0e7..e09d987fae02206a225ced5f6b21ddfa56007710 100644 |
--- a/src/compiler/graph-visualizer.cc |
+++ b/src/compiler/graph-visualizer.cc |
@@ -570,17 +570,15 @@ void GraphC1Visualizer::PrintSchedule(const char* phase, |
PrintIndent(); |
os_ << "predecessors"; |
- for (BasicBlock::Predecessors::iterator j = current->predecessors_begin(); |
- j != current->predecessors_end(); ++j) { |
- os_ << " \"B" << (*j)->id() << "\""; |
+ for (BasicBlock* predecessor : current->predecessors()) { |
+ os_ << " \"B" << predecessor->id() << "\""; |
} |
os_ << "\n"; |
PrintIndent(); |
os_ << "successors"; |
- for (BasicBlock::Successors::iterator j = current->successors_begin(); |
- j != current->successors_end(); ++j) { |
- os_ << " \"B" << (*j)->id() << "\""; |
+ for (BasicBlock* successor : current->successors()) { |
+ os_ << " \"B" << successor->id() << "\""; |
} |
os_ << "\n"; |
@@ -665,9 +663,8 @@ void GraphC1Visualizer::PrintSchedule(const char* phase, |
os_ << -1 - current->id().ToInt() << " Goto"; |
} |
os_ << " ->"; |
- for (BasicBlock::Successors::iterator j = current->successors_begin(); |
- j != current->successors_end(); ++j) { |
- os_ << " B" << (*j)->id(); |
+ for (BasicBlock* successor : current->successors()) { |
+ os_ << " B" << successor->id(); |
} |
if (FLAG_trace_turbo_types && current->control_input() != NULL) { |
os_ << " "; |