X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=a172f4b7fe06729a05e056f5f1a9b41683fb5d18;hb=8f355cb9b3d20c10f71d1b1e17cbf59a51ced83b;hp=0686a1cd33680b3ac8f5a46863bb4250a28b344b;hpb=6be9d429e8a25e1a818b9912ca3c038d020c4f8d;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 0686a1cd3..a172f4b7f 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -74,7 +74,7 @@ void set_current_ir_graph(ir_graph *graph) { current_ir_graph = graph; } - +#ifdef INTERPROCEDURAL_VIEW int firm_interprocedural_view = 0; int (get_interprocedural_view)(void) { @@ -94,6 +94,7 @@ void (set_interprocedural_view)(int state) { _get_irn_n = _get_irn_intra_n; } } +#endif /** contains the suffix for frame type names */ static ident *frame_type_suffix = NULL; @@ -254,10 +255,10 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) { add_immBlock_pred(start_block, projX); set_store(initial_mem); + res->index = get_irp_new_irg_idx(); #ifdef DEBUG_libfirm res->graph_nr = get_irp_new_node_nr(); #endif - res->proj_args = NULL; /* * The code generation needs it. leave it in now. @@ -411,14 +412,15 @@ int return _is_ir_graph(thing); } -/* Outputs a unique number for this node */ -long get_irg_graph_nr(ir_graph *irg) { - assert(irg); #ifdef DEBUG_libfirm +/* Outputs a unique number for this node */ +long get_irg_graph_nr(const ir_graph *irg) { return irg->graph_nr; -#else - return (long)PTR_TO_INT(irg); +} #endif + +int get_irg_idx(const ir_graph *irg) { + return irg->index; } ir_node * @@ -542,16 +544,6 @@ void _set_irg_value_param_base(irg, node); } -ir_node ** -(get_irg_proj_args) (const ir_graph *irg) { - return _get_irg_proj_args (irg); -} - -void -(set_irg_proj_args) (ir_graph *irg, ir_node **nodes) { - _set_irg_proj_args (irg, nodes); -} - ir_node * (get_irg_bad)(const ir_graph *irg) { return _get_irg_bad(irg);