summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bearch.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2015-08-29 00:23:45 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2015-08-29 18:48:56 +0200
commit7ceddc8e39411b72f909f79d39811d19c78afaeb (patch)
treee08617194a8509ff135ad8f5e8302e7d4ccb428e /ir/be/bearch.c
parent369eafd27990a9ac3652469bd5e9df626793ec2b (diff)
be: Use get_out_info_n().
Now the pos for fetching an out info is checked in all cases.
Diffstat (limited to 'ir/be/bearch.c')
-rw-r--r--ir/be/bearch.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/ir/be/bearch.c b/ir/be/bearch.c
index 2901243..962836d 100644
--- a/ir/be/bearch.c
+++ b/ir/be/bearch.c
@@ -62,14 +62,6 @@ arch_register_req_t const arch_no_requirement = {
.cls = &arch_none_cls,
};
-static reg_out_info_t *get_out_info_n(const ir_node *node, unsigned pos)
-{
- const backend_info_t *info = be_get_info(node);
- assert(pos < (unsigned)ARR_LEN(info->out_infos));
- return &info->out_infos[pos];
-}
-
-
const arch_register_t *arch_get_irn_register(const ir_node *node)
{
const reg_out_info_t *out = get_out_info(node);