X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.c;h=f7355f248957d66dbcc2f9f6bc8873aa4328c16f;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=20973aeb9bbf786a317939ef5b950dc629c6982a;hpb=e64f4f77b975dc8cf34a5eeb10b8f9752f0c8cf9;p=libfirm diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index 20973aeb9..f7355f248 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -6,7 +6,7 @@ ** irprog.c: ir representation of a program */ -# include "irprog.h" +# include "irprog_t.h" # include "array.h" # include "obst.h" @@ -35,6 +35,10 @@ ir_prog *new_ir_prog (void) { strlen(GLOBAL_TYPE_NAME))); add_irp_type((type *)res->glob_type); +#ifdef DEBUG_libfirm + res->max_node_nr = 1; +#endif + return res; } @@ -111,8 +115,10 @@ void set_irp_type(int pos, type *typ) { } +#ifdef DEBUG_libfirm int get_irp_new_node_nr() { assert(irp); irp->max_node_nr = irp->max_node_nr + 1; return irp->max_node_nr - 1; } +#endif