no strange comments after #include
authorMatthias Braun <matze@braunis.de>
Wed, 2 May 2007 13:19:18 +0000 (13:19 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 2 May 2007 13:19:18 +0000 (13:19 +0000)
[r13586]

ir/be/TEMPLATE/TEMPLATE_emitter.c
ir/be/TEMPLATE/TEMPLATE_emitter.h
ir/be/TEMPLATE/bearch_TEMPLATE.c

index a82a454..45ab8f6 100644 (file)
@@ -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();
index c124b63..d4f4031 100644 (file)
@@ -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 <libcore/lc_print.h>
+#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);
index e7b09b4..dbdb59f 100644 (file)
@@ -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);