Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
289ebf2e
Commit
289ebf2e
authored
Feb 21, 2009
by
Moritz Kroll
Browse files
irio: Map id of body block of const irg to new const irg
[r25543]
parent
2ba5bc95
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irio.c
View file @
289ebf2e
...
...
@@ -613,7 +613,8 @@ void ir_export(const char *filename)
irg_walk_anchors
(
irg
,
NULL
,
export_node
,
&
env
);
}
fputs
(
"}
\n\n
constirg {
\n
"
,
env
.
file
);
fprintf
(
env
.
file
,
"}
\n\n
constirg %ld {
\n
"
,
get_irn_node_nr
(
get_const_code_irg
()
->
current_block
));
walk_const_code
(
NULL
,
export_node
,
&
env
);
fputs
(
"}
\n
"
,
env
.
file
);
...
...
@@ -1465,8 +1466,13 @@ void ir_import(const char *filename)
}
case
kw_constirg
:
if
(
!
parse_graph
(
env
,
get_const_code_irg
()))
goto
end
;
{
ir_graph
*
constirg
=
get_const_code_irg
();
long
bodyblockid
=
read_long
(
env
);
set_id
(
env
,
bodyblockid
,
constirg
->
current_block
);
if
(
!
parse_graph
(
env
,
constirg
))
goto
end
;
break
;
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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