From e42cd3818eda80d2628f3c43a0880eba50092a6e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 13 Oct 2006 12:51:24 +0000 Subject: [PATCH] fixed emitter (call printf foreach . line) --- 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 a927edbf0..475020918 100755 --- a/ir/be/scripts/generate_emitter.pl +++ b/ir/be/scripts/generate_emitter.pl @@ -64,7 +64,7 @@ foreach my $op (keys(%nodes)) { my $cnt = 0; my $buf = 'cmd_buf'; - push(@obst_func, " cmnt_buf[0] = '\\0';\n"); + push(@obst_func, $indent."cmnt_buf[0] = '\\0';\n"); foreach $template (split(/$comment_string_quoted/, $fmt, 2)) { my @params; my $res = ""; @@ -119,13 +119,13 @@ foreach my $op (keys(%nodes)) { push(@obst_func, $indent.'lc_esnprintf(arg_env, '.$buf.', 256, "'.$res.'"'.$parm.');'."\n"); } + push(@obst_func, $indent.'lc_efprintf(arg_env, F, "\t%-35s %-60s /* %+F (%+G) */\n", cmd_buf, cmnt_buf, n, n);'."\n"); } else { push(@obst_func, $template,"\n"); } } - push(@obst_func, ' lc_efprintf(arg_env, F, "\t%-35s %-60s /* %+F (%+G) */\n", cmd_buf, cmnt_buf, n, n);'."\n"); push(@obst_func, "}\n\n"); } -- 2.20.1