X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbeabi.c;h=ac788c4a4c20ebcd00d781a964dc26ad54fe431e;hb=34a3de54c5444d427c6b6a4a19cad9903a20da8e;hp=9e3a970a07ee60bbef6cb16562820e12ad0402d7;hpb=efdfc8f707c7e48c856cf9a945209ba421f26b70;p=libfirm diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 9e3a970a0..ac788c4a4 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -2050,14 +2050,16 @@ static void fix_pic_symconsts(ir_node *node, void *data) /* calls can jump to relative addresses, so we can directly jump to the (relatively) known call address or the trampoline */ if (is_Call(node) && i == 1) { - if(can_address_relative(entity)) + dbg_info *dbgi; + ir_entity *trampoline; + ir_node *trampoline_const; + + if (can_address_relative(entity)) continue; - dbg_info *dbgi = get_irn_dbg_info(pred); - ir_entity *trampoline = create_trampoline(be, entity); - ir_node *trampoline_const - = new_rd_SymConst_addr_ent(dbgi, irg, mode_P_code, trampoline, - NULL); + dbgi = get_irn_dbg_info(pred); + trampoline = create_trampoline(be, entity); + trampoline_const = new_rd_SymConst_addr_ent(dbgi, irg, mode_P_code, trampoline, NULL); set_irn_n(node, i, trampoline_const); continue; }