Commit 736af708 authored by Matthias Braun's avatar Matthias Braun
Browse files

garbage_collect: simplify by using get_irn_entity_attr()

parent 890f930c
......@@ -24,18 +24,9 @@ static void visit_entity(ir_entity *entity);
static void visit_node(ir_node *node, void *env)
{
(void) env;
ir_entity *entity;
if (is_Address(node)) {
entity = get_Address_entity(node);
} else if (is_Offset(node)) {
entity = get_Offset_entity(node);
} else if (is_Sel(node)) {
entity = get_Sel_entity(node);
} else {
return;
}
visit_entity(entity);
ir_entity *entity = get_irn_entity_attr(node);
if (entity != NULL)
visit_entity(entity);
}
static void start_visit_node(ir_node *node)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment