summaryrefslogtreecommitdiffhomepage
path: root/ir/tr
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-06-14 08:24:32 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2016-06-14 08:24:32 +0200
commit5b5cfb32d2965072a077bb4f118fcc8cb306ed91 (patch)
treeb344a6fbb8d9e29b3c9ced5218b6eb16e1488988 /ir/tr
parent6df2817d160d3e565d4090265d6a5d73c75bf205 (diff)
Remove the attribute 'visibility' from 'ir_type'.
It is unused.
Diffstat (limited to 'ir/tr')
-rw-r--r--ir/tr/type.c31
-rw-r--r--ir/tr/type_t.h1
2 files changed, 9 insertions, 23 deletions
diff --git a/ir/tr/type.c b/ir/tr/type.c
index 24b2286..ac7ae43 100644
--- a/ir/tr/type.c
+++ b/ir/tr/type.c
@@ -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;
diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h
index e3036fd..6a15300 100644
--- a/ir/tr/type_t.h
+++ b/ir/tr/type_t.h
@@ -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