*/
static const char *node_const_to_str(ir_node *n) {
char buffer[SNPRINTF_BUF_LEN];
- ir_mode *mode = get_irn_mode(n);
if ( is_immediate_node(n) ) {
- tarval *tv = get_arm_value(n);
long longvalue = get_tarval_long(get_arm_value(n));
char *str;
assert(longvalue < 0x1000 && "constant doesn't fit in shifter_operand");
}
if (proj_num == pn_Cmp_False) {
- fprintf(out, "\tB BLOCK_%d\t\t\t/* false case */\n", get_irn_node_nr(false_block));
+ fprintf(out, "\tB BLOCK_%ld\t\t\t/* false case */\n", get_irn_node_nr(false_block));
} else if (proj_num == pn_Cmp_True) {
- fprintf(out, "\tB BLOCK_%d\t\t\t/* true case */\n", get_irn_node_nr(true_block));
+ fprintf(out, "\tB BLOCK_%ld\t\t\t/* true case */\n", get_irn_node_nr(true_block));
} else {
if (mode_is_float(opmode)) {
suffix = "ICHWILLIMPLEMENTIERTWERDEN";
} else {
block = get_irn_link(projs[get_arm_default_proj_num(irn)]);
}
- fprintf(out, "\t.word\tBLOCK_%d\n",get_irn_node_nr(block));
+ fprintf(out, "\t.word\tBLOCK_%ld\n",get_irn_node_nr(block));
}
fprintf(out, "\t.align 2\n");
FILE *out = emit_env->out;
const ir_edge_t *edge = get_irn_out_edge_first(irn);
ir_node *target_block = get_edge_src_irn(edge);
- fprintf(out, "\tB BLOCK_%d\t\t\t/* unconditional Jump */\n", get_irn_node_nr(target_block));
+ fprintf(out, "\tB BLOCK_%ld\t\t\t/* unconditional Jump */\n", get_irn_node_nr(target_block));
}
static void emit_Proj(ir_node *irn, void *env) {
*/
static void arm_emit_node(const ir_node *irn, void *env) {
arm_emit_env_t *emit_env = env;
- firm_dbg_module_t *mod = emit_env->mod;
FILE *F = emit_env->out;
ir_op *op = get_irn_op(irn);
+ DEBUG_ONLY(firm_dbg_module_t *mod = emit_env->mod;)
DBG((mod, LEVEL_1, "emitting code for %+F\n", irn));
* Emits code for function end
*/
void arm_emit_end(FILE *F, ir_graph *irg) {
- const char *irg_name = get_entity_name(get_irg_entity(irg));
}
/**
void arm_gen_routine(FILE *F, ir_graph *irg, const arm_code_gen_t *cg) {
arm_emit_env_t emit_env;
- emit_env.mod = firm_dbg_register("firm.be.arm.emit");
emit_env.out = F;
emit_env.arch_env = cg->arch_env;
emit_env.cg = cg;
+ FIRM_DBG_REGISTER(emit_env.mod, "firm.be.arm.emit");
/* set the global arch_env (needed by print hooks) */
arch_env = cg->arch_env;