Commit 6be3d639 authored by Michael Beck's avatar Michael Beck
Browse files

used new FIRM_DBG_REGISTER() macro

parent fd726f9e
......@@ -827,10 +827,10 @@ void arm_gen_labels(ir_node *block, void *env) {
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;
......
......@@ -63,7 +63,7 @@ static const arch_register_req_t *arm_get_irn_reg_req(const void *self, arch_reg
const arm_register_req_t *irn_req;
long node_pos = pos == -1 ? 0 : pos;
ir_mode *mode = get_irn_mode(irn);
firm_dbg_module_t *mod = firm_dbg_register(DEBUG_MODULE);
FIRM_DBG_REGISTER(firm_dbg_module_t *mod, DEBUG_MODULE);
if (is_Block(irn) || mode == mode_X || mode == mode_M) {
DBG((mod, LEVEL_1, "ignoring mode_T, mode_M node %+F\n", irn));
......@@ -479,11 +479,11 @@ static void *arm_cg_init(FILE *F, const be_irg_t *birg) {
cg->impl = &arm_code_gen_if;
cg->irg = birg->irg;
cg->reg_set = new_set(arm_cmp_irn_reg_assoc, 1024);
cg->mod = firm_dbg_register("firm.be.arm.cg");
cg->out = F;
cg->arch_env = birg->main_env->arch_env;
cg->birg = birg;
cg->int_tp = int_tp;
FIRM_DBG_REGISTER(cg->mod, "firm.be.arm.cg");
isa->num_codegens++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment