Commit a7da4e30 authored by Moritz Kroll's avatar Moritz Kroll
Browse files

Renamed attr.builtin.builtin_tp to attr.builtin.type

[r25773]
parent 853027b0
......@@ -508,7 +508,7 @@ new_bd_Builtin(dbg_info *db, ir_node *block, ir_node *store,
assert((get_unknown_type() == tp) || is_Method_type(tp));
res->attr.builtin.exc.pin_state = op_pin_state_pinned;
res->attr.builtin.kind = kind;
res->attr.builtin.builtin_tp = tp;
res->attr.builtin.type = tp;
res = optimize_node(res);
IRN_VRFY_IRG(res, irg);
return res;
......
......@@ -1430,14 +1430,14 @@ set_Builtin_param(ir_node *node, int pos, ir_node *param) {
ir_type *
get_Builtin_type(ir_node *node) {
assert(is_Builtin(node));
return node->attr.builtin.builtin_tp = skip_tid(node->attr.builtin.builtin_tp);
return node->attr.builtin.type = skip_tid(node->attr.builtin.type);
}
void
set_Builtin_type(ir_node *node, ir_type *tp) {
assert(is_Builtin(node));
assert((get_unknown_type() == tp) || is_Method_type(tp));
node->attr.builtin.builtin_tp = tp;
node->attr.builtin.type = tp;
}
/* Returns a human readable string for the ir_builtin_kind. */
......
......@@ -198,7 +198,7 @@ typedef struct {
typedef struct {
except_attr exc; /**< the exception attribute. MUST be the first one. */
ir_builtin_kind kind; /**< kind of the called builtin procedure */
ir_type *builtin_tp; /**< type of called builtin procedure */
ir_type *type; /**< type of called builtin procedure */
} builtin_attr;
/** Alloc attributes. */
......
Markdown is supported
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