From 51013d7293eada3d9861d72df4a6d1b8265ddb02 Mon Sep 17 00:00:00 2001 From: Adam Szalkowski Date: Mon, 4 Sep 2006 11:18:15 +0000 Subject: [PATCH] template for function identifying constructors --- ir/be/bearch.c | 7 +++++++ ir/be/bearch.h | 9 +++++++++ 2 files changed, 16 insertions(+) diff --git a/ir/be/bearch.c b/ir/be/bearch.c index fb7ffa82e..1ffbbdf9e 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -319,3 +319,10 @@ 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 entitiy * ent) +{ + + +} diff --git a/ir/be/bearch.h b/ir/be/bearch.h index c9c3677e0..2871c62fb 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -744,4 +744,13 @@ 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 entitiy representing a function + * @return 1 if function is a constructor + */ +extern int arch_ent_is_constructor(const arch_env_t *arch_env, const entitiy * ent); + #endif /* _FIRM_BEARCH_H */ -- 2.20.1