Produce a debug print when using jump tables.

This commit is contained in:
Bill Currie 2012-11-24 17:55:57 +09:00
parent 4c1dc568e0
commit b68401e552

View file

@ -357,6 +357,7 @@ build_switch (expr_t *sw, case_node_t *tree, int op, expr_t *sw_val,
append_expr (sw, branch);
branch = new_binary_expr ('g', table_expr, temp);
append_expr (sw, branch);
debug (sw, "switch using jump table");
if (tree->left) {
append_expr (sw, low_label);
build_switch (sw, tree->left, op, sw_val, temp, default_label);