Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
ba5f45d1
Commit
ba5f45d1
authored
Jul 18, 2012
by
Matthias Braun
Browse files
use arch_emitf for emit lines without dot prefix
parent
59738a68
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/be/scripts/generate_emitter_new.pl
View file @
ba5f45d1
...
...
@@ -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
");
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment