X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Fircons_t.h;h=99953652ac8924c8a35fd8a4082623533ee620c3;hb=d2dc2564b47d9c113d7e6e598574e9733627fcca;hp=c2bccfb226fb5f99b063c7edcdb173aefc386b0e;hpb=dddcc630819f338c3b45e2bc646233e6872d5bb6;p=libfirm diff --git a/ir/ir/ircons_t.h b/ir/ir/ircons_t.h index c2bccfb22..99953652a 100644 --- a/ir/ir/ircons_t.h +++ b/ir/ir/ircons_t.h @@ -19,17 +19,27 @@ /** * Initializes the graph construction. * - * @param func @see default_initialize_local_variable_func_t + * @param func callback that is called if a uninitialized + * variable is detected + * + * @see uninitialized_local_variable_func_t */ -void init_cons (default_initialize_local_variable_func_t *func); +void init_cons(uninitialized_local_variable_func_t *func); /* inline functions */ static INLINE ir_node * -__new_d_Bad(void) { - return current_ir_graph->bad; +_new_d_Bad(void) { + return current_ir_graph->anchors[anchor_bad]; } -#define new_d_Bad() __new_d_Bad() +static INLINE ir_node * +_new_d_NoMem(void) { + return current_ir_graph->anchors[anchor_no_mem]; +} + + +#define new_d_Bad() _new_d_Bad() +#define new_d_NoMem() _new_d_NoMem() #endif /* _IRCONS_T_H_ */