summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-06-23 08:07:36 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-06-26 23:40:48 +0200
commit487f52efcfe99b407e787ec4caf189851c22d12c (patch)
treeada229f0b9e5477ea50ece53dbc36cefa8ec7cff /ir/be/bearch.c
parent7cbfeeea7b81fd499959963694a9d9457237cbc2 (diff)
be: Do not explicitly pass an obstack to be_make_start_out().
Get the obstack from the given start node.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index c0fdcd2..02bcd4e 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -12,6 +12,7 @@
#include "bearch.h"
#include "benode.h"
#include "beinfo.h"
+#include "beirg.h"
#include "ircons_t.h"
#include "irnode_t.h"
#include "irop_t.h"
@@ -96,13 +97,13 @@ void be_make_start_mem(be_start_info_t *const info, ir_node *const start, unsign
arch_set_irn_register_req_out(start, pos, arch_no_register_req);
}
-void be_make_start_out(be_start_info_t *const info, struct obstack *const obst, ir_node *const start, unsigned const pos, arch_register_t const *const reg, arch_register_req_type_t const flags)
+void be_make_start_out(be_start_info_t *const info, ir_node *const start, unsigned const pos, arch_register_t const *const reg, arch_register_req_type_t const flags)
{
info->pos = pos;
info->irn = NULL;
arch_register_req_t const *const req =
flags == arch_register_req_type_none ? reg->single_req :
- be_create_reg_req(obst, reg, flags);
+ be_create_reg_req(be_get_be_obst(get_irn_irg(start)), reg, flags);
arch_set_irn_register_req_out(start, pos, req);
arch_set_irn_register_out(start, pos, reg);
}