From: Michael Beck Date: Fri, 13 Jan 2006 22:18:26 +0000 (+0000) Subject: renamed all types 'type' to 'ir_type' X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=b589071014a92a0b6bda812664d11d0d8a4e4db8;p=libfirm renamed all types 'type' to 'ir_type' used xmalloc instead of malloc --- diff --git a/ir/be/firm/bearch_firm.c b/ir/be/firm/bearch_firm.c index 135ad9b7b..360913288 100644 --- a/ir/be/firm/bearch_firm.c +++ b/ir/be/firm/bearch_firm.c @@ -363,7 +363,7 @@ static void prepare_walker(ir_node *irn, void *data) ir_node *store = get_Call_mem(irn); ir_node *ptr = get_Call_ptr(irn); - type *ct = get_Call_type(irn); + ir_type *ct = get_Call_type(irn); int np = get_Call_n_params(irn) > 0 ? 1 : 0; if(np > 0) { @@ -371,7 +371,7 @@ static void prepare_walker(ir_node *irn, void *data) char buf[128]; ir_node *nc; int i, n = get_Call_n_params(irn); - type *nt; + ir_type *nt; unsigned cc = get_method_calling_convention(get_Call_type(irn)); if (cc & cc_last_on_top) { @@ -502,7 +502,7 @@ static const arch_code_generator_if_t firm_code_gen = { static void *firm_cg_init(FILE *file_handle, ir_graph *irg, const arch_env_t *env) { - firm_code_gen_t *cg = malloc(sizeof(*cg)); + firm_code_gen_t *cg = xmalloc(sizeof(*cg)); cg->impl = &firm_code_gen; cg->irg = irg; return cg;