projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
removed include
[libfirm]
/
ir
/
ir
/
irprog.c
diff --git
a/ir/ir/irprog.c
b/ir/ir/irprog.c
index
35f28f1
..
1c5bc9b
100644
(file)
--- a/
ir/ir/irprog.c
+++ b/
ir/ir/irprog.c
@@
-68,7
+68,7
@@
ir_prog *new_ir_prog (void) {
res->max_node_nr = 0;
#endif
res->max_node_nr = 0;
#endif
- res->glob_type = new_type_class(
id_from_str
(GLOBAL_TYPE_NAME,
+ res->glob_type = new_type_class(
new_id_from_chars
(GLOBAL_TYPE_NAME,
strlen(GLOBAL_TYPE_NAME)));
/* Remove type from type list. Must be treated differently than
other types. */
strlen(GLOBAL_TYPE_NAME)));
/* Remove type from type list. Must be treated differently than
other types. */
@@
-76,7
+76,7
@@
ir_prog *new_ir_prog (void) {
res->const_code_irg = new_const_code_irg();
res->const_code_irg = new_const_code_irg();
- res->outs_state =
no_outs
;
+ res->outs_state =
outs_none
;
res->ip_outedges = NULL;
return res;
res->ip_outedges = NULL;
return res;
@@
-146,7
+146,6
@@
ir_graph *(get_irp_irg)(int pos){
void set_irp_irg(int pos, ir_graph *irg) {
assert (irp && irg);
assert (pos < (ARR_LEN((irp)->graphs)));
void set_irp_irg(int pos, ir_graph *irg) {
assert (irp && irg);
assert (pos < (ARR_LEN((irp)->graphs)));
- /* Strangely the first element of the array is NULL. Why?? */
irp->graphs[pos] = irg;
}
irp->graphs[pos] = irg;
}
@@
-172,7
+171,6
@@
type *(get_irp_type) (int pos) {
void set_irp_type(int pos, type *typ) {
assert (irp && typ);
assert (pos < (ARR_LEN((irp)->types)));
void set_irp_type(int pos, type *typ) {
assert (irp && typ);
assert (pos < (ARR_LEN((irp)->types)));
- /* Strangely the first element of the array is NULL. Why?? */
irp->types[pos] = typ;
}
irp->types[pos] = typ;
}
@@
-218,3
+216,12
@@
ir_node** get_irp_ip_outedges(void)
{
return(irp -> ip_outedges);
}
{
return(irp -> ip_outedges);
}
+
+
+irg_callee_info_state get_irp_callee_info_state(void) {
+ return irp->callee_info_state;
+}
+
+void set_irp_callee_info_state(irg_callee_info_state s) {
+ irp->callee_info_state = s;
+}