From ba5f45d1ff8cdc1b8e5e19ec24ea16aef7f7e5b0 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Wed, 18 Jul 2012 14:09:33 +0200 Subject: [PATCH] use arch_emitf for emit lines without dot prefix --- ir/be/scripts/generate_emitter_new.pl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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"); } } -- 2.20.1