summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-03-19 17:28:33 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-03-21 13:33:38 +0100
commitacad1b054639456ae36364d9c84827d3d9eef2e5 (patch)
tree4ca101ff29697fb9103564c81d97982a4a8ea377 /ir/be/bearch.c
parent8162ac734e468bb977246e76c7b8458f640a7271 (diff)
be: Pass an 'irg' instead of an 'obst' to 'be_create_reg_req()'.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index 7e8b831..f5a47e0 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -158,8 +158,9 @@ int be_default_is_valid_clobber(char const *const clobber)
return false;
}
-arch_register_req_t const *be_create_reg_req(struct obstack *const obst, arch_register_t const *const reg, bool const ignore)
+arch_register_req_t const *be_create_reg_req(ir_graph *const irg, arch_register_t const *const reg, bool const ignore)
{
+ struct obstack *const obst = be_get_be_obst(irg);
arch_register_class_t const *const cls = reg->cls;
unsigned *const limited = rbitset_obstack_alloc(obst, cls->n_regs);
rbitset_set(limited, reg->index);