From bdaff6480b3794396e59837399b22f0c4d6aaa23 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Thu, 16 Mar 2006 16:09:47 +0000 Subject: [PATCH] renamed emit_env_t to $arch_emit_env_t --- ir/be/scripts/generate_emitter.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ir/be/scripts/generate_emitter.pl b/ir/be/scripts/generate_emitter.pl index 59d09395e..b007f6443 100755 --- a/ir/be/scripts/generate_emitter.pl +++ b/ir/be/scripts/generate_emitter.pl @@ -41,7 +41,7 @@ foreach my $op (keys(%nodes)) { # skip this node description if no emit information is available next if (!$n{"emit"} || length($n{"emit"}) < 1); - $line = "static void emit_".$arch."_".$op."(const ir_node *n, emit_env_t *env)"; + $line = "static void emit_".$arch."_".$op."(const ir_node *n, $arch\_emit_env_t *env)"; push(@obst_func, $line." {\n FILE *F = env->out;\n"); push(@obst_func, " char cmd_buf[256], cmnt_buf[256];\n"); push(@obst_func, " const lc_arg_env_t *arg_env = $arch\_get_arg_env();\n\n"); @@ -95,7 +95,7 @@ foreach my $op (keys(%nodes)) { $res .= "%".$3; } elsif ($4) { # backend provided function to call, has to return a string - push(@params, $4."(n)"); + push(@params, $4."(n, env)"); $res .= "\%s"; } -- 2.20.1