Commit ba5f45d1 authored by Matthias Braun's avatar Matthias Braun
Browse files

use arch_emitf for emit lines without dot prefix

parent 59738a68
......@@ -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");
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment