Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
9881ec52
Commit
9881ec52
authored
Jul 01, 2004
by
Götz Lindenmaier
Browse files
comment
[r3284]
parent
ddf3db34
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/tr/entity.c
View file @
9881ec52
...
...
@@ -924,9 +924,11 @@ static entity *resolve_ent_polymorphy2 (type *dynamic_class, entity* static_ent)
return
res
;
}
/* Returns the dynamically referenced entity if the static entity and the
* dynamic type are given.
* Search downwards in overwritten tree. */
/** Resolve polymorphy in the inheritance relation.
*
* Returns the dynamically referenced entity if the static entity and the
* dynamic type are given.
* Search downwards in overwritten tree. */
entity
*
resolve_ent_polymorphy
(
type
*
dynamic_class
,
entity
*
static_ent
)
{
entity
*
res
;
assert
(
static_ent
&&
static_ent
->
kind
==
k_entity
);
...
...
@@ -939,7 +941,6 @@ entity *resolve_ent_polymorphy(type *dynamic_class, entity* static_ent) {
dump_entity
(
static_ent
);
dump_type
(
get_entity_owner
(
static_ent
));
dump_type
(
dynamic_class
);
}
assert
(
res
);
return
res
;
...
...
ir/tr/type.h
View file @
9881ec52
...
...
@@ -125,11 +125,13 @@ typedef struct type type;
*/
void
free_type_entities
(
type
*
tp
);
/** Frees the memory used by the type. Does not free the entities
belonging to the type, except for the array element entity.
Does not free if tp is "none" or "unknown".
Frees entities in value param subtypes of method types!!! Make sure these
are not referenced any more. */
/** Frees the memory used by the type.
*
* Removes the type from the type list. Does not free the entities
* belonging to the type, except for the array element entity. Does
* not free if tp is "none" or "unknown". Frees entities in value
* param subtypes of method types!!! Make sure these are not
* referenced any more. */
void
free_type
(
type
*
tp
);
tp_op
*
get_type_tpop
(
type
*
tp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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