if (i instanceof CallInstr) {
CallInstr call = (CallInstr)i;
MethAddr addr = call.getMethodAddr();
if (methodToInline.equals(((MethAddr)addr).getName())) {
System.out.println("Will be inlining method " + methodToInline + " at callsite: " + call);
c.inlineMethod(mi, b, call);
// Just inline once per scope -- this is a test after all!
// Because, the surrounding iterators will break with a concurrent modification exception if we proceed!
return;
}
}