From 6a45fa957aa50f690326cd26ea5e1a939e8e16ae Mon Sep 17 00:00:00 2001 From: Florian Liekweg Date: Tue, 27 Apr 2004 12:38:27 +0000 Subject: [PATCH] fixed variable decls --flo [r2776] --- ir/common/statistics.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ir/common/statistics.c b/ir/common/statistics.c index 1af3281dc..6e24ec978 100644 --- a/ir/common/statistics.c +++ b/ir/common/statistics.c @@ -30,9 +30,10 @@ static void count_nodes(ir_node *n, void *env) { void print_graph_counts(int verbosity) { int i, counter, total = 0; int view = interprocedural_view; - interprocedural_view = 0; ir_graph *old = current_ir_graph; + interprocedural_view = 0; + for (i = 0; i < get_irp_n_irgs(); i++) { counter = 0; irg_walk_graph(get_irp_irg(i), count_nodes, NULL, &counter); @@ -58,13 +59,13 @@ void print_type_counts(int verbosity) { if (is_union_type(tp)) counter = get_union_n_members(tp); if (counter > -1) { if (verbosity == 1) - printf(" +%3d entities in %s type %s.\n", counter, get_type_tpop_name(tp), get_type_name(tp)); + printf(" +%3d entities in %s type %s.\n", counter, get_type_tpop_name(tp), get_type_name(tp)); total += counter; } } printf(" +++ There are %d types with total %d entities.\n", get_irp_n_types(), total); printf(" +++ Global type has %d entities\n", - get_class_n_members(get_glob_type())); + get_class_n_members(get_glob_type())); } -- 2.20.1