{
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;
}
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;
-}
int handlers_tos; /**< The stack pointer of the handler
stack. */
- pset *constructor_entities; /**< Set holding the entities of the constructor irgs */
};
/**
*/
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 */