projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the now unused function get_Proj_type().
[libfirm]
/
scripts
/
gen_ir.py
diff --git
a/scripts/gen_ir.py
b/scripts/gen_ir.py
index
ab8e304
..
4e17588
100755
(executable)
--- a/
scripts/gen_ir.py
+++ b/
scripts/gen_ir.py
@@
-285,10
+285,8
@@
ir_node *new_rd_{{node.constrname}}(
{% endfilter %})
{
ir_node *res;
{% endfilter %})
{
ir_node *res;
- ir_graph *rem = current_ir_graph;
{{node|irgassign}}
{{node|insdecl}}
{{node|irgassign}}
{{node|insdecl}}
- current_ir_graph = irg;
res = new_ir_node(
{%- filter arguments %}
dbgi
res = new_ir_node(
{%- filter arguments %}
dbgi
@@
-311,8
+309,7
@@
ir_node *new_rd_{{node.constrname}}(
{%- if node.optimize != False %}
res = optimize_node(res);
{%- endif %}
{%- if node.optimize != False %}
res = optimize_node(res);
{%- endif %}
- IRN_VRFY_IRG(res, irg);
- current_ir_graph = rem;
+ irn_verify_irg(res, irg);
return res;
}
return res;
}
@@
-337,15
+334,13
@@
ir_node *new_d_{{node.constrname}}(
{% endfilter %})
{
ir_node *res;
{% endfilter %})
{
ir_node *res;
+ assert(get_irg_phase_state(current_ir_graph) == phase_building);
res = new_rd_{{node.constrname}}(
{%- filter parameters %}
dbgi
{{node|curblock}}
{{node|nodearguments}}
{% endfilter %});
res = new_rd_{{node.constrname}}(
{%- filter parameters %}
dbgi
{{node|curblock}}
{{node|nodearguments}}
{% endfilter %});
- {%- if "fragile" in node.flags %}
- firm_alloc_frag_arr(res, op_{{node.name}}, &res->attr.except.frag_arr);
- {%- endif %}
return res;
}
return res;
}