belive: Change all users of _value_strictly_dominates() to _value_strictly_dominates_...
[libfirm] / ir / stat / pattern_dmp.c
index 4ae89c2..d03e767 100644 (file)
  * @file
  * @brief   Statistics for Firm. Dumping patterns.
  * @author  Michael Beck
- * @version $Id$
  */
 #include "config.h"
 
-#ifdef FIRM_STATISTICS
-
 #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);
-       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)
@@ -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);
-       ir_mode *mode = get_irp_mode(mode_code);
+       ir_mode *mode = ir_get_mode(mode_code);
        (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);
 
-       memcpy(res, &stdout_dump, sizeof(*res));
+       *res = stdout_dump;
        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 */
-
-#endif /* FIRM_STATISTICS */