From 78044698cd74cc7a2e5821ec19e31cc3462613b8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Tue, 19 Dec 2006 15:44:04 +0000 Subject: [PATCH] added comment_string_end --- ir/be/ia32/ia32_spec.pl | 3 ++- ir/be/scripts/generate_emitter.pl | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ir/be/ia32/ia32_spec.pl b/ir/be/ia32/ia32_spec.pl index dd3542d64..f54eb6838 100644 --- a/ir/be/ia32/ia32_spec.pl +++ b/ir/be/ia32/ia32_spec.pl @@ -6,7 +6,8 @@ $arch = "ia32"; # this string marks the beginning of a comment in emit -$comment_string = "/*"; +$comment_string = "/*"; +$comment_string_end = "*/"; # the number of additional opcodes you want to register #$additional_opcodes = 0; diff --git a/ir/be/scripts/generate_emitter.pl b/ir/be/scripts/generate_emitter.pl index 475020918..7edb84763 100755 --- a/ir/be/scripts/generate_emitter.pl +++ b/ir/be/scripts/generate_emitter.pl @@ -14,6 +14,7 @@ my $target_dir = $ARGV[1]; our $arch; our $comment_string; +our $comment_string_end; our %nodes; # include spec file @@ -119,7 +120,7 @@ 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"); + push(@obst_func, $indent.'lc_efprintf(arg_env, F, "\t%-35s %-60s '.$comment_string.' %+F (%+G) '.$comment_string_end.'\n", cmd_buf, cmnt_buf, n, n);'."\n"); } else { push(@obst_func, $template,"\n"); -- 2.20.1