public CFG buildCFG() { cfg = new CFG(this); cfg.build(instrList); // Clear out instruction list after CFG has been built. this.instrList = null; return cfg; }
public void buildCFG(List<Instr> instrList) { CFG newBuild = new CFG(this); newBuild.build(instrList); cfg = newBuild; }