added comment_string_end
authorChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 19 Dec 2006 15:44:04 +0000 (15:44 +0000)
committerChristian Würdig <chriswue@ipd.info.uni-karlsruhe.de>
Tue, 19 Dec 2006 15:44:04 +0000 (15:44 +0000)
ir/be/ia32/ia32_spec.pl
ir/be/scripts/generate_emitter.pl

index dd3542d..f54eb68 100644 (file)
@@ -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;
index 4750209..7edb847 100755 (executable)
@@ -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");