X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fstat_dmp.c;h=d50bfad1d591b3495caec17a417087b77c71181b;hb=0bddf6c31e2dc664e50eed6609ac36a1a86e1536;hp=f40568180a9bf40a0915492541264481de641870;hpb=270f2356557d43d3e7ea36dacac46cd1e54a902d;p=libfirm diff --git a/ir/stat/stat_dmp.c b/ir/stat/stat_dmp.c index f40568180..d50bfad1d 100644 --- a/ir/stat/stat_dmp.c +++ b/ir/stat/stat_dmp.c @@ -21,7 +21,6 @@ * @file * @brief Statistics for Firm. Dumping. * @author Michael Beck - * @version $Id$ */ #include "config.h" @@ -29,6 +28,7 @@ #include "irtools.h" #include "irhooks.h" #include "util.h" +#include "fourcc.h" /** * names of the optimizations @@ -559,7 +559,7 @@ static void simple_dump_graph(dumper_t *dmp, graph_entry_t *entry) simple_dump_real_func_calls(dmp, &entry->cnt[gcnt_acc_real_func_call]); simple_dump_tail_recursion(dmp, entry->num_tail_recursion); - for (i = 0; i < sizeof(entry->opt_hash)/sizeof(entry->opt_hash[0]); ++i) { + for (i = 0; i != ARRAY_SIZE(entry->opt_hash); ++i) { simple_dump_opt_hash(dmp, entry->opt_hash[i], i); } /* for */