template for function identifying constructors
authorAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Mon, 4 Sep 2006 11:18:15 +0000 (11:18 +0000)
committerAdam Szalkowski <adam@ipd.info.uni-karlsruhe.de>
Mon, 4 Sep 2006 11:18:15 +0000 (11:18 +0000)
ir/be/bearch.c
ir/be/bearch.h

index fb7ffa8..1ffbbdf 100644 (file)
@@ -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)
+{
+
+
+}
index c9c3677..2871c62 100644 (file)
@@ -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 */