X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Fentity_t.h;h=df3811bbaf7d81a044ea2376fff028ab94145024;hb=7af9389c7b0901e561e4bc1dee02f46876152893;hp=190cfd4f087be855f3616ab6e57f0baf428a4cec;hpb=c79fe4adc914d8d867772053bedf449a4f85645d;p=libfirm diff --git a/ir/tr/entity_t.h b/ir/tr/entity_t.h index 190cfd4f0..df3811bba 100644 --- a/ir/tr/entity_t.h +++ b/ir/tr/entity_t.h @@ -31,7 +31,6 @@ #include "typerep.h" #include "type_t.h" #include "ident.h" -#include "pseudo_irg.h" #include "compound_path.h" typedef struct ir_initializer_base_t { @@ -78,9 +77,6 @@ typedef struct compound_ent_attr { /**< paths corresponding to constant values. */ } compound_ent_attr; -/** A reserved value for "not yet set". */ -#define VTABLE_NUM_NOT_SET ((unsigned)(-1)) - /** The attributes for methods. */ typedef struct method_ent_attr { ir_graph *irg; /**< The corresponding irg if known. @@ -172,7 +168,9 @@ struct ir_entity { }; /** Initialize the entity module. */ -void firm_init_entity(void); +void ir_init_entity(void); +/** Cleanup entity module */ +void ir_finish_entity(void); /* ----------------------- inline functions ------------------------ */ static inline int _is_entity(const void *thing) @@ -340,16 +338,12 @@ static inline void _set_entity_link(ir_entity *ent, void *l) static inline ir_graph *_get_entity_irg(const ir_entity *ent) { - ir_graph *irg; assert(ent && ent->kind == k_entity); if (!is_Method_type(ent->type) || ent == unknown_entity) { return NULL; } - irg = ent->attr.mtd_attr.irg; - if (irg != NULL && !get_visit_pseudo_irgs() && is_pseudo_ir_graph(irg)) - return NULL; - return irg; + return ent->attr.mtd_attr.irg; } static inline ir_visited_t _get_entity_visited(const ir_entity *ent)