X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeabi.c;h=87b43156d6e90c05ed34dd2270f34b96fd40641b;hb=44e06c719bc59348c183e041947461b49e48c79f;hp=a8e030a1551d4ac0fec6128714e07489f05ab488;hpb=dc3c6e3fd61414aae453a1836b614a982d226cd5;p=libfirm diff --git a/ir/be/beabi.c b/ir/be/beabi.c index a8e030a15..87b43156d 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -74,7 +74,6 @@ struct _be_stack_slot_t { struct _be_abi_irg_t { struct obstack obst; - firm_dbg_module_t *dbg; /**< The debugging module. */ be_stack_frame_t *frame; /**< The stack frame model. */ const be_irg_t *birg; /**< The back end IRG. */ const arch_isa_t *isa; /**< The isa. */ @@ -99,6 +98,7 @@ struct _be_abi_irg_t { arch_irn_handler_t irn_handler; arch_irn_ops_t irn_ops; + DEBUG_ONLY(firm_dbg_module_t *dbg;) /**< The debugging module. */ }; #define get_abi_from_handler(ptr) firm_container_of(ptr, be_abi_irg_t, irn_handler) @@ -1134,7 +1134,6 @@ static void create_barrier(be_abi_irg_t *env, ir_node *bl, ir_node **mem, pmap * */ static void modify_irg(be_abi_irg_t *env) { - firm_dbg_module_t *dbg = env->dbg; be_abi_call_t *call = env->call; const arch_isa_t *isa = env->birg->main_env->arch_env->isa; const arch_register_t *sp = arch_isa_sp(isa); @@ -1148,6 +1147,7 @@ static void modify_irg(be_abi_irg_t *env) pset *dont_save = pset_new_ptr(8); int n_params = get_method_n_params(method_type); int max_arg = 0; + DEBUG_ONLY(firm_dbg_module_t *dbg = env->dbg;) int i, j, n; @@ -1479,6 +1479,9 @@ void be_abi_free(be_abi_irg_t *env) */ +/** + * Walker. Collect all stack modifying nodes. + */ static void collect_stack_nodes_walker(ir_node *irn, void *data) { pset *s = data;