X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Fstatistics.c;h=276d605590454bebe1b0328dec2329815a8b8fa9;hb=c0acb5cc9a2967e31e2b2961a98831d674cea3b8;hp=1138295820370deda6d1b4c0e4427ae4f405554e;hpb=a89063290e573d23f0ef4d827a68b319ae74e594;p=libfirm diff --git a/ir/common/statistics.c b/ir/common/statistics.c index 113829582..276d60559 100644 --- a/ir/common/statistics.c +++ b/ir/common/statistics.c @@ -10,6 +10,10 @@ * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include "statistics.h" #include "irgraph_t.h" #include "irnode_t.h" @@ -52,11 +56,11 @@ void print_graph_counts(int verbosity) { void print_type_counts(int verbosity) { int i, counter, total = 0; for (i = 0; i < get_irp_n_types(); i++) { - type *tp = get_irp_type(i); + ir_type *tp = get_irp_type(i); counter = -1; - if (is_class_type(tp)) counter = get_class_n_members(tp); - if (is_struct_type(tp)) counter = get_struct_n_members(tp); - if (is_union_type(tp)) counter = get_union_n_members(tp); + if (is_Class_type(tp)) counter = get_class_n_members(tp); + if (is_Struct_type(tp)) counter = get_struct_n_members(tp); + 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));