From: Christian Würdig Date: Tue, 13 Dec 2005 15:37:34 +0000 (+0000) Subject: get file handle from backend caller and pass to isa init X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=dc932bff14044e8511d693085fce630cbf4b9dd3;p=libfirm get file handle from backend caller and pass to isa init --- diff --git a/ir/be/be.h b/ir/be/be.h index 9aa4b32ca..02a4e1ef5 100644 --- a/ir/be/be.h +++ b/ir/be/be.h @@ -3,7 +3,7 @@ #define _BE_MAIN_H void be_init(void); -void be_main(int argc, const char *argv[]); +void be_main(FILE *file_handle); typedef struct _be_main_env_t be_main_env_t; typedef struct _be_options_t be_options_t; diff --git a/ir/be/bearch.c b/ir/be/bearch.c index a765e3a61..8084dc96c 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -26,10 +26,10 @@ #include "pset.h" #include "entity.h" -arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if) +arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa_if, FILE *file_handle) { memset(env, 0, sizeof(*env)); - env->isa = isa_if->init(); + env->isa = isa_if->init(file_handle); return env; } diff --git a/ir/be/bearch.h b/ir/be/bearch.h index c93ef30b3..a31def637 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -446,7 +446,7 @@ struct _arch_isa_if_t { /** * Initialize the isa interface. */ - void *(*init)(void); + void *(*init)(FILE *file_handle); /** * Free the isa instance. @@ -524,7 +524,7 @@ struct _arch_env_t { * @param isa The isa which shall be put into the environment. * @return The environment. */ -extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa); +extern arch_env_t *arch_env_init(arch_env_t *env, const arch_isa_if_t *isa, FILE *file_handle); /** * Add a node handler to the environment.