summaryrefslogtreecommitdiffhomepage
path: root/ir/be/becopyopt_t.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 09:39:30 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2012-11-13 09:39:30 +0100
commitf84594874e48e9883cfb1e040856f3f56782c956 (patch)
tree97808c2e8a19ac30af4cf65ffa8500b139f51827 /ir/be/becopyopt_t.h
parent96cdb5f8baa27173cbf79ef6983af4c42de1f9b6 (diff)
Remove the very thin wrapper function arch_register_get_index().
Diffstat (limited to 'ir/be/becopyopt_t.h')
-rw-r--r--ir/be/becopyopt_t.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/be/becopyopt_t.h b/ir/be/becopyopt_t.h
index 56f3da7..7abaf02 100644
--- a/ir/be/becopyopt_t.h
+++ b/ir/be/becopyopt_t.h
@@ -59,7 +59,7 @@ struct copy_opt_t {
static inline unsigned get_irn_col(const ir_node *node)
{
- return arch_register_get_index(arch_get_irn_register(node));
+ return arch_get_irn_register(node)->index;
}
static inline void set_irn_col(const arch_register_class_t *cls, ir_node *node,