X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Fstatistics.c;h=89c2e05691b140151d5d75af6aca9c45d40ad78a;hb=49ad2542b4cc755e005cf7cd0f3fe76240130dba;hp=6e24ec978607d97d7b4b6970fa786f01a28cc6a6;hpb=6a45fa957aa50f690326cd26ea5e1a939e8e16ae;p=libfirm diff --git a/ir/common/statistics.c b/ir/common/statistics.c index 6e24ec978..89c2e0569 100644 --- a/ir/common/statistics.c +++ b/ir/common/statistics.c @@ -10,9 +10,13 @@ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "statistics.h" -#include "irgraph.h" -#include "irnode.h" +#include "irgraph_t.h" +#include "irnode_t.h" #include "irprog.h" #include "irgwalk.h" @@ -29,10 +33,10 @@ static void count_nodes(ir_node *n, void *env) { * totals. */ void print_graph_counts(int verbosity) { int i, counter, total = 0; - int view = interprocedural_view; + int view = get_interprocedural_view(); ir_graph *old = current_ir_graph; - interprocedural_view = 0; + set_interprocedural_view(0); for (i = 0; i < get_irp_n_irgs(); i++) { counter = 0; @@ -44,7 +48,7 @@ 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; - interprocedural_view = view; + set_interprocedural_view(view); } /** Prints number of types, number of entities and totals.