X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Fstatistics.c;h=4dcfc02a7f8552d2554e8bc091940d312bfb2fbe;hb=0887d4a59b29ff9c398d2961dce95977fd7efe9c;hp=631fb6965003547dcba68f2bb6a47c3a27fe9ce5;hpb=80f4030f3ba99a60493767f54fcb95ddcb98afeb;p=libfirm diff --git a/ir/common/statistics.c b/ir/common/statistics.c index 631fb6965..4dcfc02a7 100644 --- a/ir/common/statistics.c +++ b/ir/common/statistics.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -47,10 +47,12 @@ static void count_nodes(ir_node *n, void *env) { * totals. */ void print_graph_counts(int verbosity) { int i, counter, total = 0; - int view = get_interprocedural_view(); ir_graph *old = current_ir_graph; +#ifdef INTERPROCEDURAL_VIEW + int view = get_interprocedural_view(); set_interprocedural_view(0); +#endif for (i = 0; i < get_irp_n_irgs(); i++) { counter = 0; @@ -62,7 +64,9 @@ void print_graph_counts(int verbosity) { printf(" +++ There are %d graphs with total %d nodes.\n", get_irp_n_irgs(), total); current_ir_graph = old; +#ifdef INTERPROCEDURAL_VIEW set_interprocedural_view(view); +#endif } /** Prints number of types, number of entities and totals.