summaryrefslogtreecommitdiffhomepage
path: root/ir/be/benode.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-10-18 11:19:12 +0200
committerMatthias Braun <matze@braunis.de>2015-10-18 11:45:15 +0200
commitd013e55796cb01d63f92a6866e9e956466aec462 (patch)
tree3f79eb9bf5d0ea4ddb7ed6fc520c335e9a9cbab8 /ir/be/benode.c
parent1f55516e34a6debbb2fe057ebac85114a8dd4ae6 (diff)
Enfore Add/Sub pointer, offset to use reference_offset_mode
Diffstat (limited to 'ir/be/benode.c')
-rw-r--r--ir/be/benode.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/be/benode.c b/ir/be/benode.c
index a6b2277..52a1169 100644
--- a/ir/be/benode.c
+++ b/ir/be/benode.c
@@ -479,11 +479,12 @@ ir_node *be_new_Asm(dbg_info *const dbgi, ir_node *const block, int const n_ins,
return asmn;
}
-ir_node *be_new_Relocation(ir_graph *irg, unsigned kind, ir_entity *entity)
+ir_node *be_new_Relocation(ir_graph *irg, unsigned kind, ir_entity *entity,
+ ir_mode *mode)
{
ir_node *const block = get_irg_start_block(irg);
ir_node *const node = new_ir_node(NULL, irg, block, op_be_Relocation,
- mode_P, 0, NULL);
+ mode, 0, NULL);
be_relocation_attr_t *const attr
= (be_relocation_attr_t*)get_irn_generic_attr(node);
attr->entity = entity;