beinfo: Remove declaration of the non-existent function be_info_duplicate().
[libfirm] / ir / be / becopyopt_t.h
index e32ae71..7abaf02 100644 (file)
@@ -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,
@@ -150,6 +150,6 @@ static inline affinity_node_t *get_affinity_info(const copy_opt_t *co, const ir_
 }
 
 #define co_gs_foreach_aff_node(co, aff_node)     foreach_set((co)->nodes, affinity_node_t, (aff_node))
-#define co_gs_foreach_neighb(aff_node, neighb)   for (neighb = aff_node->neighbours; neighb != NULL; neighb = neighb->next)
+#define co_gs_foreach_neighb(aff_node, neighb)   for (neighb_t *neighb = aff_node->neighbours; neighb; neighb = neighb->next)
 
 #endif /* FIRM_BE_BECOPYOPT_T_H */