make IBasicBlock an Iterable<IInstruction>. Rename iterateAllInstructions() to iterator()

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@876 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
This commit is contained in:
sjfink 2007-03-22 10:50:26 +00:00
parent 9618f5a8a9
commit 88638ff850
1 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ public class CompareCDGTest extends WalaTestCase {
}
Trace.println(") {");
Iterator<? extends IInstruction> it = ibb.iterateAllInstructions();
Iterator<? extends IInstruction> it = ibb.iterator();
int j = 0;
while (it.hasNext()) {
SSAInstruction inst = (SSAInstruction) it.next();
@ -302,7 +302,7 @@ public class CompareCDGTest extends WalaTestCase {
}
Trace.println(") {");
Iterator<? extends IInstruction> it = ibb.iterateAllInstructions();
Iterator<? extends IInstruction> it = ibb.iterator();
int j = 0;
while (it.hasNext()) {
SSAInstruction inst = (SSAInstruction) it.next();