X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.c;h=1aee6e8c03868c8185a8aac54c833cf8d3e04c62;hb=38249b0311df91904bb3a566a770efe650f40efc;hp=06865090f7b2596dbac699fcbe62227d2e1d0830;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c index 06865090f..1aee6e8c0 100644 --- a/ir/stat/pattern_dmp.c +++ b/ir/stat/pattern_dmp.c @@ -23,9 +23,7 @@ * @author Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #ifdef FIRM_STATISTICS @@ -154,7 +152,7 @@ static void vcg_dump_node(pattern_dumper_t *self, unsigned id, { vcg_private_t *priv = self->data; ir_op *op = stat_get_op_from_opcode(op_code); - ir_mode *mode = (ir_mode *)mode_code; + ir_mode *mode = stat_mode_for_index(mode_code); long l = attr ? *(long *)attr : 0; if (priv->pattern_id > priv->max_pattern) @@ -231,7 +229,7 @@ static void stdout_dump_node(pattern_dumper_t *self, unsigned id, unsigned op_co { FILE *f = self->data; ir_op *op = stat_get_op_from_opcode(op_code); - ir_mode *mode = (ir_mode *)mode_code; + ir_mode *mode = stat_mode_for_index(mode_code); (void) attr; /* if (env->options & OPT_ENC_GRAPH) */