use default error handler if none is specified
[libfirm] / ir / be / becopyopt_t.h
index 6987be4..7e5c882 100644 (file)
@@ -42,7 +42,6 @@
 struct _copy_opt_t {
        be_chordal_env_t            *cenv;
        const arch_register_class_t *cls;
-       const arch_env_t            *aenv;
        ir_graph                    *irg;
        char                        *name;       /**< ProgName__IrgName__RegClassName */
        cost_fct_t                  get_costs;   /**< function ptr used to get costs for copies */
@@ -68,8 +67,7 @@ struct _copy_opt_t {
 #define is_Reg_Phi(irn)                                                (is_Phi(irn) && mode_is_data(get_irn_mode(irn)))
 
 #define get_Perm_src(irn) (get_irn_n(get_Proj_pred(irn), get_Proj_proj(irn)))
-#define is_Perm(irn)      (arch_irn_classify(irn) == arch_irn_class_perm)
-#define is_Perm_Proj(irn) (is_Proj(irn) && is_Perm(get_Proj_pred(irn)))
+#define is_Perm_Proj(irn) (is_Proj(irn) && be_is_Perm(get_Proj_pred(irn)))
 
 static INLINE int is_2addr_code(const arch_register_req_t *req)
 {