X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fpattern_dmp.c;h=f9077a32eab71447200ab85312fdd9b2fcf70206;hb=45ecc187cee7107c83c1f9618a1e1e586df73644;hp=d2b42401e9fa96e2e48cfddc4c7aaaf8a14558b0;hpb=2cc9db25f1d7780e24013ef1cc912a3cd770d7a5;p=libfirm diff --git a/ir/stat/pattern_dmp.c b/ir/stat/pattern_dmp.c index d2b42401e..f9077a32e 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. * @@ -27,6 +27,8 @@ # include "config.h" #endif +#ifdef FIRM_STATISTICS + #include #ifdef HAVE_STDLIB_H # include @@ -152,7 +154,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) @@ -173,6 +175,7 @@ static void vcg_dump_node(pattern_dumper_t *self, unsigned id, static void vcg_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, unsigned pos, unsigned mode_code) { vcg_private_t *priv = self->data; + (void) mode_code; if (priv->pattern_id > priv->max_pattern) return; @@ -228,7 +231,8 @@ 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) */ fprintf(f, "%u:", id); @@ -255,6 +259,10 @@ static void stdout_dump_ref(pattern_dumper_t *self, unsigned id) static void stdout_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, unsigned pos, unsigned mode_code) { FILE *f = self->data; + (void) tgt; + (void) src; + (void) pos; + (void) mode_code; if (pos > 0) fprintf(f, ", "); @@ -266,6 +274,7 @@ static void stdout_dump_edge(pattern_dumper_t *self, unsigned tgt, unsigned src, static void stdout_start_children(pattern_dumper_t *self, unsigned id) { FILE *f = self->data; + (void) id; fprintf(f, "("); } /* stdout_start_children */ @@ -276,6 +285,7 @@ static void stdout_start_children(pattern_dumper_t *self, unsigned id) static void stdout_finish_children(pattern_dumper_t *self, unsigned id) { FILE *f = self->data; + (void) id; fprintf(f, ")"); } /* stdout_finish_children */ @@ -419,3 +429,5 @@ pattern_dumper_t *new_vcg_dumper(const char *vcg_name, unsigned max_pattern) return res; } /* new_vcg_dumper */ + +#endif /* FIRM_STATISTICS */