X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.h;h=ea3fc01389efcb99edf01e34bb4297f06ed11796;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=166dfdbee4cb1859d74e486229f1ab8f18cdd4d2;hpb=95016d86cd1ad652b9bd5c6b652b4fe85ceef003;p=libfirm diff --git a/ir/ir/irprog.h b/ir/ir/irprog.h index 166dfdbee..ea3fc0138 100644 --- a/ir/ir/irprog.h +++ b/ir/ir/irprog.h @@ -21,27 +21,11 @@ # include "irnode.h" # include "type.h" -struct ir_prog { - firm_kind kind; - ir_graph *main_irg; /* entry point to the compiled program */ - /* or a list, in case we compile a library or the like? */ - ir_graph **graphs; /* all graphs in the ir */ - type_class *glob_type; /* global type. Class as it can have - fields and procedures. Does this work? - Better name??? @@@ */ - type **types; /* all types in the ir */ - /*struct obstack *obst; * @@@ Should we place all types and - entities on an obstack, too? */ -#ifdef DEBUG_libfirm - long max_node_nr; /* to generate unique numbers for nodes. */ -#endif -}; typedef struct ir_prog ir_prog; /* A variable from where everything in the ir can be accessed. */ -ir_prog *irp; - +extern ir_prog *irp; /* initializes ir_prog. Calles the constructor for an ir_prog. */ void init_irprog(void);