X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fir%2Firprofile.c;h=6046ca9b905d0bdfbc41087b7a7e86f6c87e1c49;hb=af82344c3d1ede9a28e652302a8c2bac7bb1c743;hp=80b42858c141fb7223e7a3470feec162a6fbea10;hpb=7d070c58e7bef1ed875fac066b57f29de449724b;p=libfirm diff --git a/ir/ir/irprofile.c b/ir/ir/irprofile.c index 80b42858c..6046ca9b9 100644 --- a/ir/ir/irprofile.c +++ b/ir/ir/irprofile.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -63,9 +63,6 @@ typedef struct intialize_execfreq_env_t { double freq_factor; } initialize_execfreq_env_t; -/* maximal filename size */ -#define MAX_NAME_SIZE 0x100 - /* minimal execution frequency (an execfreq of 0 confuses algos) */ #define MIN_EXECFREQ 0.00001 @@ -73,7 +70,7 @@ typedef struct intialize_execfreq_env_t { static set *profile = NULL; /* Hook for vcg output. */ -DEBUG_ONLY(static void *hook;) +static void *hook; /* The debug module handle. */ DEBUG_ONLY(static firm_dbg_module_t *dbg;) @@ -103,9 +100,9 @@ static int cmp_execcount(const void *a, const void *b, size_t size) */ static void block_counter(ir_node *bb, void *data) { - (void) bb; unsigned *count = (unsigned*) data; - (*count)++; + (void) bb; + ++(*count); } /**