Commit 5512229a authored by Christoph Mallon's avatar Christoph Mallon
Browse files

irdump: Streamline printing modes on node labels.

- Always print mode for Bad and Proj
- Do not print mode M and X
parent 1aa611ca
......@@ -726,20 +726,14 @@ static void dump_node_mode(FILE *F, const ir_node *n)
case iro_Align:
case iro_Cmp:
case iro_Sel:
case iro_End:
case iro_Return:
case iro_Free:
case iro_Sync:
case iro_Jmp:
case iro_NoMem:
case iro_Offset:
case iro_Size:
break;
default: {
ir_mode *mode = get_irn_mode(n);
if (mode != NULL && mode != mode_BB && mode != mode_ANY && mode != mode_BAD &&
(mode != mode_T || iro == iro_Proj))
if ((mode != mode_ANY && mode != mode_BAD && mode != mode_BB && mode != mode_M && mode != mode_T && mode != mode_X) ||
iro == iro_Bad || iro == iro_Proj)
fprintf(F, "%s", get_mode_name(mode));
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment