Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
5b5cfb32
Commit
5b5cfb32
authored
Jun 14, 2016
by
Christoph Mallon
Browse files
Remove the attribute 'visibility' from 'ir_type'.
It is unused.
parent
6df2817d
Changes
3
Hide whitespace changes
Inline
Side-by-side
include/libfirm/typerep.h
View file @
5b5cfb32
...
...
@@ -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
);
/** @} */
/** @} */
...
...
ir/tr/type.c
View file @
5b5cfb32
...
...
@@ -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
;
...
...
ir/tr/type_t.h
View file @
5b5cfb32
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment