This commit is contained in:
Julian Dolby 2017-03-10 13:49:07 -05:00
parent a2c388b83d
commit 0545060886
1 changed files with 6 additions and 1 deletions

View File

@ -42,7 +42,7 @@ import com.ibm.wala.util.strings.StringStuff;
*
* See http://wala.sourceforge.net/wiki/index.php/UserGuide:IR for more details on the IR API.
*/
public abstract class IR {
public abstract class IR implements IRView {
/**
* The method that defined this IR's bytecodes
@ -266,6 +266,11 @@ public abstract class IR {
return cfg;
}
@Override
public Iterator<ISSABasicBlock> getBlocks() {
return getControlFlowGraph().iterator();
}
/**
* Return an {@link Iterator} of all {@link SSAPhiInstruction}s for this IR.
*/