From: Michael Beck Date: Tue, 15 Mar 2011 02:56:15 +0000 (+0100) Subject: Make remove_compound_member() an official API method. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=da0db014608257f77c6ed0518c685c8dc1b465c6;p=libfirm Make remove_compound_member() an official API method. Needed by edgjfe. --- diff --git a/include/libfirm/typerep.h b/include/libfirm/typerep.h index f20f01dab..d2e8956a8 100644 --- a/include/libfirm/typerep.h +++ b/include/libfirm/typerep.h @@ -2124,6 +2124,9 @@ FIRM_API ir_entity *get_compound_member(const ir_type *tp, size_t pos); /** Returns index of member in tp, -1 if not contained. */ FIRM_API size_t get_compound_member_index(const ir_type *tp, ir_entity *member); +/** Remove a member from a compound type. */ +FIRM_API void remove_compound_member(ir_type *compound, ir_entity *entity); + /** * layout members of a struct/union or class type in a default way. */ diff --git a/ir/tr/type_t.h b/ir/tr/type_t.h index 73c7c782f..bced1c793 100644 --- a/ir/tr/type_t.h +++ b/ir/tr/type_t.h @@ -284,7 +284,6 @@ void set_class_dfn(ir_type *clss, int dfn); int get_class_dfn(const ir_type *clss); void add_compound_member(ir_type *compound, ir_entity *entity); -void remove_compound_member(ir_type *compound, ir_entity *entity); /** Initialize the type module. */ void ir_init_type(void);