Make remove_compound_member() an official API method.
authorMichael Beck <mm.beck@gmx.net>
Tue, 15 Mar 2011 02:56:15 +0000 (03:56 +0100)
committerMichael Beck <mm.beck@gmx.net>
Tue, 15 Mar 2011 02:56:15 +0000 (03:56 +0100)
Needed by edgjfe.

include/libfirm/typerep.h
ir/tr/type_t.h

index f20f01d..d2e8956 100644 (file)
@@ -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.
  */
index 73c7c78..bced1c7 100644 (file)
@@ -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);