BugFix: fixed list_for_each_safe() instance.
[libfirm] / ir / be / ppc32 / ppc32_transform_conv.c
index 3810f03..9f6f497 100644 (file)
@@ -41,7 +41,6 @@
 #include "bearch_ppc32_t.h"
 
 #include "ppc32_nodes_attr.h"
-//#include "../arch/archop.h"     /* we need this for Min and Max nodes */
 #include "ppc32_transform_conv.h"
 #include "ppc32_transform.h"
 #include "ppc32_new_nodes.h"
@@ -82,15 +81,15 @@ static ir_node *own_gen_convert_call(ppc32_transform_env_t *env, ir_node *op, co
 
        in[0] = op;
 
-       method_type = new_type_method(new_id_from_str("convert_call_type"), 1, 1);
-       set_method_param_type(method_type, 0, new_type_primitive(new_id_from_str("conv_param"), from_mode));
-       set_method_res_type(method_type, 0, new_type_primitive(new_id_from_str("conv_result"), to_mode));
+       method_type = new_type_method(1, 1);
+       set_method_param_type(method_type, 0, new_type_primitive(from_mode));
+       set_method_res_type(method_type, 0, new_type_primitive(to_mode));
 
        method_ent   = new_entity(get_glob_type(), new_id_from_str(funcname), method_type);
        callee       = new_rd_SymConst_addr_ent(env->dbg, env->irg, mode_P_code, method_ent, method_type);
        call         = new_rd_Call(env->dbg, env->block, memory, callee, 1, in, method_type);
        call_results = new_rd_Proj(env->dbg, env->block, call, mode_T, pn_Call_T_result);
-       memory       = new_rd_Proj(env->dbg, env->block, call, mode_M, pn_Call_M_regular);
+       memory       = new_rd_Proj(env->dbg, env->block, call, mode_M, pn_Call_M);
 
        return new_rd_Proj(env->dbg, env->block, call_results, to_mode, 0);
 }