From 0171af5b961a88fa714abde2186693ff9c15e35a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 6 Sep 2006 15:01:13 +0000 Subject: [PATCH] removed the constructor_entities attribute, this is now handled by entity --- ir/be/bearch.c | 5 ----- ir/be/bearch.h | 10 ---------- 2 files changed, 15 deletions(-) diff --git a/ir/be/bearch.c b/ir/be/bearch.c index 4f2882cf2..5ea988dd8 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -35,7 +35,6 @@ arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if, FILE *fi { memset(env, 0, sizeof(*env)); env->isa = isa_if->init(file_handle); - env->constructor_entities = pset_new_ptr(5); env->isa->main_env = main_env; return env; } @@ -321,7 +320,3 @@ extern char *arch_register_req_format(char *buf, size_t len, const arch_register return buf; } - -int arch_ent_is_constructor(const arch_env_t *arch_env, const entity *ent) { - return pset_find_ptr(arch_env->constructor_entities, ent) != NULL; -} diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 20685c288..a9c13db11 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -714,7 +714,6 @@ struct _arch_env_t { int handlers_tos; /**< The stack pointer of the handler stack. */ - pset *constructor_entities; /**< Set holding the entities of the constructor irgs */ }; /** @@ -747,13 +746,4 @@ extern arch_env_t *arch_env_push_irn_handler(arch_env_t *env, const arch_irn_han */ extern const arch_irn_handler_t *arch_env_pop_irn_handler(arch_env_t *env); -/** - * Tells whether function represented by entity should be - * called in the constructor section. - * @param arch_env The architecture environment. - * @param ent The entity representing a function - * @return 1 if function is a constructor - */ -extern int arch_ent_is_constructor(const arch_env_t *arch_env, const entity *ent); - #endif /* _FIRM_BEARCH_H */ -- 2.20.1