Remove empty init_graph functions from arm and sparc backends.
be_sched_fix_flags(irg, &arm_reg_classes[CLASS_arm_flags], NULL, NULL);
}
-/**
- * Initializes the code generator.
- */
-static void arm_init_graph(ir_graph *irg)
-{
- (void) irg;
-}
-
-
/**
* Maps all intrinsic calls that the backend support
* and map all instructions the backend did not support
arm_begin_codegeneration,
arm_end_codegeneration,
- arm_init_graph,
+ NULL,
NULL, /* get call abi */
NULL, /* mark remat */
NULL, /* get_pic_base */
be_timer_pop(T_VERIFY);
/* get a code generator for this graph. */
- arch_env->impl->init_graph(irg);
+ if (arch_env->impl->init_graph)
+ arch_env->impl->init_graph(irg);
/* some transformations need to be done before abi introduce */
if (arch_env->impl->before_abi != NULL)
NULL, sparc_modifies_fp_flags);
}
-static void sparc_init_graph(ir_graph *irg)
-{
- (void) irg;
-}
-
extern const arch_isa_if_t sparc_isa_if;
static sparc_isa_t sparc_isa_template = {
{
sparc_begin_codegeneration,
sparc_end_codegeneration,
- sparc_init_graph,
+ NULL,
NULL, /* get call abi */
NULL, /* mark remat */
NULL, /* get_pic_base */