display which classes each handler catches when outputting IR

This commit is contained in:
Martin Mohr 2016-12-09 16:26:43 +01:00
parent 9ca450de48
commit b9fb5e0481

View File

@ -154,7 +154,17 @@ public abstract class IR {
int end = bb.getLastInstructionIndex();
result.append("BB").append(bb.getNumber());
if (bb instanceof ExceptionHandlerBasicBlock) {
result.append("<Handler>");
result.append("<Handler> (");
Iterator<TypeReference> catchIter = ((ExceptionHandlerBasicBlock) bb).getCaughtExceptionTypes();
while (catchIter.hasNext()) {
TypeReference next = catchIter.next();
result.append(next);
if (catchIter.hasNext()) {
result.append(",");
}
}
result.append(")");
}
result.append("\n");
for (Iterator it = bb.iteratePhis(); it.hasNext();) {