return buf;
}
-int
-arch_ent_is_constructor(const arch_env_t *arch_env, const entity * ent)
-{
-
-
+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 */
};
/**
* @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);
+extern int arch_ent_is_constructor(const arch_env_t *arch_env, const entity *ent);
#endif /* _FIRM_BEARCH_H */