BugFix: fixed list_for_each_safe() instance.
[libfirm] / ir / be / ppc32 / ppc32_transform_conv.c
index 8c820be..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,9 +81,9 @@ 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);