projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make fehler159 compilable.
[libfirm]
/
ir
/
stat
/
pattern_dmp.c
diff --git
a/ir/stat/pattern_dmp.c
b/ir/stat/pattern_dmp.c
index
d8752fc
..
f9077a3
100644
(file)
--- a/
ir/stat/pattern_dmp.c
+++ b/
ir/stat/pattern_dmp.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-27,6
+27,8
@@
# include "config.h"
#endif
# include "config.h"
#endif
+#ifdef FIRM_STATISTICS
+
#include <stdio.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#include <stdio.h>
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
@@
-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);
{
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)
long l = attr ? *(long *)attr : 0;
if (priv->pattern_id > priv->max_pattern)
@@
-229,7
+231,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);
{
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) */
(void) attr;
/* if (env->options & OPT_ENC_GRAPH) */
@@
-427,3
+429,5
@@
pattern_dumper_t *new_vcg_dumper(const char *vcg_name, unsigned max_pattern)
return res;
} /* new_vcg_dumper */
return res;
} /* new_vcg_dumper */
+
+#endif /* FIRM_STATISTICS */