From: Matthias Braun Date: Wed, 2 May 2007 13:19:18 +0000 (+0000) Subject: no strange comments after #include X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=d9811e8be438bec3cb37f04796f859610811a3a4;p=libfirm no strange comments after #include [r13586] --- diff --git a/ir/be/TEMPLATE/TEMPLATE_emitter.c b/ir/be/TEMPLATE/TEMPLATE_emitter.c index a82a454d0..45ab8f6ab 100644 --- a/ir/be/TEMPLATE/TEMPLATE_emitter.c +++ b/ir/be/TEMPLATE/TEMPLATE_emitter.c @@ -198,9 +198,6 @@ typedef void (*emit_func_ptr) (TEMPLATE_emit_env_t *, const ir_node *); */ void TEMPLATE_emit_node(TEMPLATE_emit_env_t *env, const ir_node *node) { ir_op *op = get_irn_op(node); - DEBUG_ONLY(firm_dbg_module_t *mod = env->mod;) - - DBG((mod, LEVEL_1, "emitting code for %+F\n", node)); if (op->ops.generic) { emit_func_ptr func = (emit_func_ptr) op->ops.generic; @@ -281,7 +278,6 @@ void TEMPLATE_gen_routine(const TEMPLATE_code_gen_t *cg, ir_graph *irg) { env.emit = &env.isa->emit; env.arch_env = cg->arch_env; env.cg = cg; - FIRM_DBG_REGISTER(env.mod, "firm.be.TEMPLATE.emit"); /* register all emitter functions */ TEMPLATE_register_emitters(); diff --git a/ir/be/TEMPLATE/TEMPLATE_emitter.h b/ir/be/TEMPLATE/TEMPLATE_emitter.h index c124b63f9..d4f4031fd 100644 --- a/ir/be/TEMPLATE/TEMPLATE_emitter.h +++ b/ir/be/TEMPLATE/TEMPLATE_emitter.h @@ -25,7 +25,7 @@ #ifndef FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H #define FIRM_BE_TEMPLATE_TEMPLATE_EMITTER_H -#include "irargs_t.h" // this also inlucdes +#include "irargs_t.h" #include "irnode.h" #include "debug.h" @@ -39,7 +39,6 @@ typedef struct _TEMPLATE_emit_env_t { const arch_env_t *arch_env; const TEMPLATE_code_gen_t *cg; TEMPLATE_isa_t *isa; - DEBUG_ONLY(firm_dbg_module_t *mod;) } TEMPLATE_emit_env_t; void TEMPLATE_emit_source_register(TEMPLATE_emit_env_t *env, const ir_node *node, int pos); diff --git a/ir/be/TEMPLATE/bearch_TEMPLATE.c b/ir/be/TEMPLATE/bearch_TEMPLATE.c index e7b09b4fd..dbdb59f5c 100644 --- a/ir/be/TEMPLATE/bearch_TEMPLATE.c +++ b/ir/be/TEMPLATE/bearch_TEMPLATE.c @@ -36,7 +36,7 @@ #include "bitset.h" #include "debug.h" -#include "../bearch_t.h" /* the general register allocator interface */ +#include "../bearch_t.h" #include "../benode_t.h" #include "../belower.h" #include "../besched_t.h" @@ -47,8 +47,8 @@ #include "bearch_TEMPLATE_t.h" -#include "TEMPLATE_new_nodes.h" /* TEMPLATE nodes interface */ -#include "gen_TEMPLATE_regalloc_if.h" /* the generated interface (register type and class defenitions) */ +#include "TEMPLATE_new_nodes.h" +#include "gen_TEMPLATE_regalloc_if.h" #include "TEMPLATE_transform.h" #include "TEMPLATE_emitter.h" #include "TEMPLATE_map_regs.h" @@ -292,7 +292,7 @@ static void TEMPLATE_emit_and_done(void *self) { /* de-allocate code generator */ del_set(cg->reg_set); - free(self); + free(cg); } static void *TEMPLATE_cg_init(be_irg_t *birg);