From: Matthias Braun Date: Wed, 18 Jul 2012 12:09:33 +0000 (+0200) Subject: use arch_emitf for emit lines without dot prefix X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ba5f45d1ff8cdc1b8e5e19ec24ea16aef7f7e5b0;p=libfirm use arch_emitf for emit lines without dot prefix --- diff --git a/ir/be/scripts/generate_emitter_new.pl b/ir/be/scripts/generate_emitter_new.pl index f1d9b6307..1ffc8fbda 100755 --- a/ir/be/scripts/generate_emitter_new.pl +++ b/ir/be/scripts/generate_emitter_new.pl @@ -107,11 +107,13 @@ foreach my $op (keys(%nodes)) { foreach my $template (@emit) { # substitute only lines, starting with a '.' - if ($template =~ /^(\s*)\.\s*(.*)/) { + if ($template eq '') { + # nothing + } elsif ($template =~ /^(\s*)\.\s*(.*)/) { my $indent = "\t$1"; create_emitter(\@obst_func, $indent, $2); } else { - push(@obst_func, "\t$template\n"); + push(@obst_func, "\t${arch}_emitf(node, \"$template\");\n"); } }