X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fentity_t.h;h=a605f6da6c444ef03c31c54daf4e8a5547605086;hb=d88be9755d1677cd1b1cfb3421769fb87cb15997;hp=570c4b7e99f0f6d88d3f32e525b3129d33e81853;hpb=7fe7a673936552cc45d7ffeb03ecaa511844e337;p=libfirm diff --git a/ir/tr/entity_t.h b/ir/tr/entity_t.h index 570c4b7e9..a605f6da6 100644 --- a/ir/tr/entity_t.h +++ b/ir/tr/entity_t.h @@ -29,8 +29,7 @@ # ifndef _ENTITY_T_H_ # define _ENTITY_T_H_ -# include "ident.h" -# include "type.h" +# include "entity.h" #ifndef _IR_GRAPH_TYPEDEF_ #define _IR_GRAPH_TYPEDEF_ @@ -46,8 +45,14 @@ struct entity { is the ident for `A_a'. */ type *type; /* The type of this entity, e.g., a method type, a basic type of the language or a class itself */ - type *owner; /* The class this entity belongs to. In case of local variables - the method they are defined in. */ + type *owner; /* The class this entity belongs to. In case of local + variables the method they are defined in. */ + ent_allocation allocation; /* Distinguishes static and dynamically allocated + entities. */ + ent_visibility visibility; /* Specifies visibility to external program + fragments */ + int offset; /* Offset in byte for this entity. Fixed when layout + of owner is determined. */ /* for methods */ ir_graph *irg; /* If (type == method_type) this is the corresponding irg. The ir_graph constructor automatically sets this field.