From da0db014608257f77c6ed0518c685c8dc1b465c6 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 15 Mar 2011 03:56:15 +0100 Subject: [PATCH] Make remove_compound_member() an official API method. Needed by edgjfe. --- include/libfirm/typerep.h | 3 +++ ir/tr/type_t.h | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) 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); -- 2.20.1