X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firnode.c;h=f9957859d1491af88f50956342b7e1faeaff7b49;hb=4f92e524762e0febc361676111b3b5b79addd03a;hp=03b101297b27d937b6427bcd13b6ca905832201d;hpb=8f7699e72345c8dd85cf916fc282146baafb9f69;p=libfirm diff --git a/ir/ir/irnode.c b/ir/ir/irnode.c index 03b101297..f9957859d 100644 --- a/ir/ir/irnode.c +++ b/ir/ir/irnode.c @@ -516,19 +516,6 @@ ir_type *is_frame_pointer(const ir_node *n) return NULL; } -/* Test whether arbitrary node is tls pointer, i.e. Proj(pn_Start_P_tls) - * from Start. If so returns tls type, else Null. */ -ir_type *is_tls_pointer(const ir_node *n) -{ - if (is_Proj(n) && (get_Proj_proj(n) == pn_Start_P_tls)) { - ir_node *start = get_Proj_pred(n); - if (is_Start(start)) { - return get_tls_type(); - } - } - return NULL; -} - ir_node **get_Block_cfgpred_arr(ir_node *node) { assert(is_Block(node)); @@ -1644,7 +1631,7 @@ static ir_type *get_Null_type(const ir_node *n) } /* Sets the get_type operation for an ir_op_ops. */ -ir_op_ops *firm_set_default_get_type_attr(ir_opcode code, ir_op_ops *ops) +ir_op_ops *firm_set_default_get_type_attr(unsigned code, ir_op_ops *ops) { switch (code) { case iro_SymConst: ops->get_type_attr = get_SymConst_attr_type; break; @@ -1669,7 +1656,7 @@ static ir_entity *get_Null_ent(const ir_node *n) } /* Sets the get_type operation for an ir_op_ops. */ -ir_op_ops *firm_set_default_get_entity_attr(ir_opcode code, ir_op_ops *ops) +ir_op_ops *firm_set_default_get_entity_attr(unsigned code, ir_op_ops *ops) { switch (code) { case iro_SymConst: ops->get_entity_attr = get_SymConst_attr_entity; break;