X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.c;h=ef7136a6c53e7de01f5b1579d5e9080da82e94cf;hb=3da5ed2598245b896255bc444aaa1768f6098cfe;hp=00103f3c69c65685848c0bd5873e0ee073cfa86d;hpb=f7817e49891f62068f8148ad108b50005a7968a4;p=libfirm diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c index 00103f3c6..ef7136a6c 100644 --- a/ir/stat/pattern_dmp.c +++ b/ir/stat/pattern_dmp.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -23,16 +23,12 @@ * @author Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #ifdef FIRM_STATISTICS #include -#ifdef HAVE_STDLIB_H -# include -#endif +#include #include "ident.h" #include "irop_t.h" @@ -154,7 +150,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 +227,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) */