projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
belive: Change all users of _value_strictly_dominates() to _value_strictly_dominates_...
[libfirm]
/
ir
/
stat
/
pattern_dmp.c
diff --git
a/ir/stat/pattern_dmp.c
b/ir/stat/pattern_dmp.c
index
4ae89c2
..
d03e767
100644
(file)
--- a/
ir/stat/pattern_dmp.c
+++ b/
ir/stat/pattern_dmp.c
@@
-21,12
+21,9
@@
* @file
* @brief Statistics for Firm. Dumping patterns.
* @author Michael Beck
* @file
* @brief Statistics for Firm. Dumping patterns.
* @author Michael Beck
- * @version $Id$
*/
#include "config.h"
*/
#include "config.h"
-#ifdef FIRM_STATISTICS
-
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
@@
-150,7
+147,7
@@
static void vcg_dump_node(pattern_dumper_t *self, unsigned id,
{
vcg_private_t *priv = (vcg_private_t*)self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
{
vcg_private_t *priv = (vcg_private_t*)self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
- ir_mode *mode =
get_irp
_mode(mode_code);
+ ir_mode *mode =
ir_get
_mode(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)
@@
-227,7
+224,7
@@
static void stdout_dump_node(pattern_dumper_t *self, unsigned id, unsigned op_co
{
FILE *f = (FILE*)self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
{
FILE *f = (FILE*)self->data;
ir_op *op = stat_get_op_from_opcode(op_code);
- ir_mode *mode =
get_irp
_mode(mode_code);
+ ir_mode *mode =
ir_get
_mode(mode_code);
(void) attr;
/* if (env->options & OPT_ENC_GRAPH) */
(void) attr;
/* if (env->options & OPT_ENC_GRAPH) */
@@
-387,7
+384,7
@@
pattern_dumper_t *new_text_dumper(void)
{
pattern_dumper_t *res = XMALLOC(pattern_dumper_t);
{
pattern_dumper_t *res = XMALLOC(pattern_dumper_t);
-
memcpy(res, &stdout_dump, sizeof(*res))
;
+
*res = stdout_dump
;
res->data = stdout;
if (res->dump_start)
res->data = stdout;
if (res->dump_start)
@@
-423,5
+420,3
@@
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 */