From 91c4099f537311497f5af25e65f330a1b4bf94c9 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 24 Mar 2006 18:17:26 +0000 Subject: [PATCH] copy the debug info when craeting a be_Call form a Call --- ir/be/beabi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 61a5e4384..1466e213b 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -536,7 +536,7 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) unspeakable Proj_T from the Call. Therefore, all real argument Proj numbers must be increased by pn_Call_max */ - proj += pn_Call_max; + proj += pn_Call_max; set_Proj_proj(res, proj); obstack_ptr_grow(obst, res); @@ -565,9 +565,11 @@ static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp) be_Call_set_entity(low_call, get_SymConst_entity(call_ptr)); } - else + else low_call = be_new_Call(irg, bl, curr_mem, curr_sp, call_ptr, curr_res_proj + pset_count(caller_save), n_low_args, in); + set_irn_dbg_info(low_call, get_irn_dbg_info(irn)); + /* TODO: Set the register class of the call address to the same as the stack pointer's. -- 2.20.1