projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Let collect_nodes cope with Bad nodes
[libfirm]
/
ir
/
ir
/
irgraph.c
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
d469694
..
423eed1
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-396,7
+396,7
@@
ir_graph *create_irg_copy(ir_graph *irg)
new_identities(res);
/* clone the frame type here for safety */
new_identities(res);
/* clone the frame type here for safety */
- irp_reserve_resources(irp, IR_RESOURCE_ENTITY_LINK);
+ irp_reserve_resources(irp, IR
P
_RESOURCE_ENTITY_LINK);
res->frame_type = clone_frame_type(irg->frame_type);
res->phase_state = irg->phase_state;
res->frame_type = clone_frame_type(irg->frame_type);
res->phase_state = irg->phase_state;
@@
-426,7
+426,7
@@
ir_graph *create_irg_copy(ir_graph *irg)
res->estimated_node_count = irg->estimated_node_count;
ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
res->estimated_node_count = irg->estimated_node_count;
ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
- irp_free_resources(irp, IR_RESOURCE_ENTITY_LINK);
+ irp_free_resources(irp, IR
P
_RESOURCE_ENTITY_LINK);
return res;
}
return res;
}
@@
-491,7
+491,7
@@
size_t get_irg_idx(const ir_graph *irg)
return irg->index;
}
return irg->index;
}
-ir_node *(get_idx_irn)(ir_graph *irg, unsigned idx)
+ir_node *(get_idx_irn)(
const
ir_graph *irg, unsigned idx)
{
return _get_idx_irn(irg, idx);
}
{
return _get_idx_irn(irg, idx);
}
@@
-606,14
+606,6
@@
void (set_irg_frame_type)(ir_graph *irg, ir_type *ftp)
_set_irg_frame_type(irg, ftp);
}
_set_irg_frame_type(irg, ftp);
}
-/* Returns the value parameter type of an IR graph. */
-ir_type *get_irg_value_param_type(ir_graph *irg)
-{
- ir_entity *ent = get_irg_entity(irg);
- ir_type *mtp = get_entity_type(ent);
- return get_method_value_param_type(mtp);
-}
-
int get_irg_n_locs(ir_graph *irg)
{
return irg->n_loc - 1;
int get_irg_n_locs(ir_graph *irg)
{
return irg->n_loc - 1;
@@
-630,7
+622,7
@@
struct obstack *
*
* Implementation is GLIBC specific as is uses the internal _obstack_chunk implementation.
*/
*
* Implementation is GLIBC specific as is uses the internal _obstack_chunk implementation.
*/
-int node_is_in_irgs_storage(
ir_graph *irg,
ir_node *n)
+int node_is_in_irgs_storage(
const ir_graph *irg, const
ir_node *n)
{
struct _obstack_chunk *p;
{
struct _obstack_chunk *p;
@@
-883,7
+875,6
@@
void irg_invalidate_phases(ir_graph *irg)
#ifndef NDEBUG
void ir_reserve_resources(ir_graph *irg, ir_resources_t resources)
{
#ifndef NDEBUG
void ir_reserve_resources(ir_graph *irg, ir_resources_t resources)
{
- assert((resources & ~IR_RESOURCE_LOCAL_MASK) == 0);
assert((irg->reserved_resources & resources) == 0);
irg->reserved_resources |= resources;
}
assert((irg->reserved_resources & resources) == 0);
irg->reserved_resources |= resources;
}