handle empty comments in automatic emitters right
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 8 Apr 2006 00:53:28 +0000 (00:53 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 8 Apr 2006 00:53:28 +0000 (00:53 +0000)
ir/be/scripts/generate_emitter.pl

index e623456..ebbf7a3 100755 (executable)
@@ -64,6 +64,7 @@ foreach my $op (keys(%nodes)) {
                        my $cnt = 0;
                        my $buf = 'cmd_buf';
 
+                       push(@obst_func, "  cmnt_buf[0] = '\\0';\n");
                        foreach $template (split(/$comment_string_quoted/, $fmt, 2)) {
                                my @params;
                                my $res = "";