From 6586ac8f09dc313b7bfb2bc4fd25e1e12ed176a1 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 17 Oct 2005 17:04:04 +0000 Subject: [PATCH] added default calling convention used new names [r6712] --- ir/common/firm.c | 9 +++++---- ir/common/firm.h | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/ir/common/firm.c b/ir/common/firm.c index a680ec774..a644e293d 100644 --- a/ir/common/firm.c +++ b/ir/common/firm.c @@ -32,6 +32,7 @@ # include "ircons_t.h" # include "irgraph_t.h" # include "type_t.h" +# include "entity_t.h" # include "type_identify.h" # include "firmstat.h" # include "irreflect_t.h" @@ -60,7 +61,6 @@ init_firm(const firm_parameter_t *param) memcpy(&def_params, param, size); } - /* initialize all ident stuff */ init_ident(def_params.id_if, 1024); /* initialize Firm hooks */ @@ -80,7 +80,7 @@ init_firm(const firm_parameter_t *param) /* initialize tarvals, and floating point arithmetic */ init_tarval_2(); /* init graph construction */ - init_irgraph(); + firm_init_irgraph(def_params.cc_mask); /* kind of obstack initialization */ firm_init_mangle(); /* initialize all op codes an irnode can consist of */ @@ -92,9 +92,10 @@ init_firm(const firm_parameter_t *param) /* Builds a construct allowing to access all information to be constructed later. */ init_irprog_2(); - /* Constructs some idents needed. */ + /* Initialize the type module and construct some idents needed. */ firm_init_type(NULL); - init_entity(); + /* initialize the entity module */ + firm_init_entity(); /* allocate a hash table. */ init_type_identify(def_params.ti_if); /* Init reflection facility. */ diff --git a/ir/common/firm.h b/ir/common/firm.h index 75013194e..bbc4e1fb0 100644 --- a/ir/common/firm.h +++ b/ir/common/firm.h @@ -174,6 +174,11 @@ struct _firm_parameter_t { * If not set, no architecture dependent operations will be used. */ arch_ops_info *arch_op_settings; + + /** + * The default calling convention. + */ + unsigned cc_mask; }; typedef struct _firm_parameter_t firm_parameter_t; -- 2.20.1