Commit 0a108566 authored by Matthias Braun's avatar Matthias Braun
Browse files

slightly change color selection code

- no need for Pin special case
- use color_anchor for End node even though it has mode_X
parent e5e47f46
......@@ -848,29 +848,30 @@ static void dump_node_vcgattr(FILE *F, const ir_node *node, const ir_node *local
print_vcg_color(F, ird_color_memory);
return;
}
if (mode == mode_X) {
print_vcg_color(F, ird_color_controlflow);
return;
}
switch (get_irn_opcode(n)) {
case iro_Start:
case iro_End:
print_vcg_color(F, ird_color_anchor);
break;
return;
case iro_Bad:
print_vcg_color(F, ird_color_error);
break;
return;
case iro_Block:
print_vcg_color(F, ird_color_block_background);
break;
return;
case iro_Phi:
print_vcg_color(F, ird_color_phi);
return;
default:
break;
case iro_Pin:
print_vcg_color(F, ird_color_memory);
break;
default: {
}
if (mode == mode_X) {
print_vcg_color(F, ird_color_controlflow);
return;
}
ir_op *op = get_irn_op(n);
if (is_op_constlike(op)) {
......@@ -880,8 +881,6 @@ static void dump_node_vcgattr(FILE *F, const ir_node *node, const ir_node *local
} else if (is_op_cfopcode(op) || is_op_forking(op)) {
print_vcg_color(F, ird_color_controlflow);
}
}
}
}
hook_entry_t *dump_add_node_info_callback(dump_node_info_cb_t *cb, void *data)
......
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