X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fentity.h;h=6938e1187960373ff9d1c8f0549e602238f40562;hb=720e625fc3cd757376a6467c292928a2c96db421;hp=39bb819779fa94913afc4e8b8a2db4edeee4a5bd;hpb=d57fa1071acdc33b6fd58a8ff2159f8a99347500;p=libfirm diff --git a/ir/tr/entity.h b/ir/tr/entity.h index 39bb81977..6938e1187 100644 --- a/ir/tr/entity.h +++ b/ir/tr/entity.h @@ -221,7 +221,7 @@ typedef enum { allocation_dynamic, /**< The entity is allocated during runtime, explicitly by an Alloc node. */ allocation_static /**< The entity is allocated statically. We can use a - SymConst(?) as address of the entity. */ + Const as address of the entity. */ } ent_allocation; /** Returns the allocation type of an entity. */ @@ -230,7 +230,7 @@ ent_allocation get_entity_allocation (entity *ent); /** Sets the allocation type of an entity. */ void set_entity_allocation (entity *ent, ent_allocation al); -/** Return the name of the visibility */ +/** Return the name of the allocation type. */ const char *get_allocation_name(ent_allocation vis); /** @@ -451,4 +451,8 @@ bool entity_visited(entity *ent); /** Returns true if this entity was not visited. */ bool entity_not_visited(entity *ent); +/** Returns the dynamically referenced entity if the static entity and the + * dynamic type are given. */ +entity *resolve_ent_polymorphy(type *dynamic_class, entity* static_ent); + # endif /* _ENTITY_H_ */