From b68401e55240b8d286b6bbc9a1ba4b998548a11f Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 24 Nov 2012 17:55:57 +0900 Subject: [PATCH] Produce a debug print when using jump tables. --- tools/qfcc/source/switch.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/qfcc/source/switch.c b/tools/qfcc/source/switch.c index 4c5f83459..50c17cb56 100644 --- a/tools/qfcc/source/switch.c +++ b/tools/qfcc/source/switch.c @@ -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);