be: inline arch_env_begin_codegeneration() into its only caller.
[libfirm] / ir / stat / pattern_dmp.c
index 87a0d90..d03e767 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief   Statistics for Firm. Dumping patterns.
  * @author  Michael Beck
- * @version $Id$
  */
 #include "config.h"
 
@@ -148,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)
@@ -225,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) */
@@ -385,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)