Commit 5b5cfb32 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the attribute 'visibility' from 'ir_type'.

It is unused.
parent 6df2817d
......@@ -1662,11 +1662,6 @@ typedef void entity_walk_func(ir_entity *ent, void *env);
FIRM_API void walk_types_entities(ir_type *tp, entity_walk_func *doit,
void *env);
/** @deprecated */
FIRM_API ir_visibility get_type_visibility(const ir_type *tp);
/** @deprecated */
FIRM_API void set_type_visibility(ir_type *tp, ir_visibility v);
/** @} */
/** @} */
......
......@@ -127,16 +127,15 @@ static ir_type *new_type(tp_opcode const opcode, size_t attr_size,
ir_type *const res = (ir_type*)xmalloc(node_size);
memset(res, 0, node_size);
res->kind = k_type;
res->opcode = opcode;
res->mode = mode;
res->visibility = ir_visibility_external;
res->flags = tf_none;
res->size = 0;
res->align = 0;
res->visit = 0;
res->link = NULL;
res->nr = get_irp_new_node_nr();
res->kind = k_type;
res->opcode = opcode;
res->mode = mode;
res->flags = tf_none;
res->size = 0;
res->align = 0;
res->visit = 0;
res->link = NULL;
res->nr = get_irp_new_node_nr();
add_irp_type(res); /* Remember the new type global. */
......@@ -224,18 +223,6 @@ unsigned (get_type_size)(const ir_type *tp)
return get_type_size_(tp);
}
ir_visibility get_type_visibility(const ir_type *tp)
{
assert(is_type(tp));
return tp->visibility;
}
void set_type_visibility(ir_type *tp, ir_visibility v)
{
assert(is_type(tp));
tp->visibility = v;
}
void set_type_size(ir_type *tp, unsigned size)
{
tp->size = size;
......
......@@ -117,7 +117,6 @@ struct ir_type {
firm_kind kind; /**< the firm kind, must be k_type */
tp_opcode opcode;
ident *name; /**< The name of the type */
ir_visibility visibility;/**< Visibility of entities of this type. */
unsigned flags; /**< Type flags, a bitmask of enum type_flags. */
unsigned size; /**< Size of an ir_entity of this type. This is
determined when fixing the layout of this
......
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