-/**
- * Add an entity to it's already set owner type.
- */
-static inline void insert_entity_in_owner(ir_entity *ent) {
- ir_type *owner = ent->owner;
- switch (get_type_tpop_code(owner)) {
- case tpo_class:
- add_class_member(owner, ent);
- break;
- case tpo_struct:
- add_struct_member(owner, ent);
- break;
- case tpo_union:
- add_union_member(owner, ent);
- break;
- case tpo_array:
- set_array_element_entity(owner, ent);
- break;
- default:
- panic("Unsupported type kind");
- }
-} /* insert_entity_in_owner */
-
-/**
- * Creates a new entity. This entity is NOT inserted in the owner type.
- *
- * @param db debug info for this entity
- * @param owner the owner type of the new entity
- * @param name the name of the new entity
- * @param type the type of the new entity
- *
- * @return the new created entity
- */
-static inline ir_entity *
-new_rd_entity(dbg_info *db, ir_type *owner, ident *name, ir_type *type)