X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fentity_t.h;h=41309a7d1ef69062d8417ff20ef127b1c9f03d5a;hb=3bcbfec36f89ae53617d216824c72a01c9034abb;hp=5343c4a28b454dd8c9615855e50724476b5c61a1;hpb=9e82dd3f9bc8da1876a2817734e8614449cda3dd;p=libfirm diff --git a/ir/tr/entity_t.h b/ir/tr/entity_t.h index 5343c4a28..41309a7d1 100644 --- a/ir/tr/entity_t.h +++ b/ir/tr/entity_t.h @@ -109,7 +109,6 @@ struct entity { /* ------------- fields for analyses ---------------*/ - ir_node **accesses; /**< accessing nodes: loads, stores. */ #ifdef DEBUG_libfirm int nr; /**< a unique node number for each node to make output @@ -118,6 +117,8 @@ struct entity { # endif /* DEBUG_libfirm */ }; + + /* ----------------------- inline functions ------------------------ */ static INLINE int __is_entity(const void *thing) { @@ -225,6 +226,7 @@ __set_entity_peculiarity(entity *ent, peculiarity pec) { assert(ent && ent->kind == k_entity); /* @@@ why peculiarity only for methods? */ assert(is_method_type(ent->type)); + ent->peculiarity = pec; } @@ -281,7 +283,7 @@ __set_entity_link(entity *ent, void *l) { static INLINE ir_graph * __get_entity_irg(const entity *ent) { assert(ent && ent->kind == k_entity); - assert(is_method_type(ent->type)); + assert(ent == unknown_entity || is_method_type(ent->type)); return ent->irg; }