X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph_t.h;h=a3b484fe29cd4e3bf6095ef2220a441002e10ac4;hb=a6c8b3da7e86ac3352cefa422736b9683499911b;hp=ef1f544ee69d213c6b9460c3c5900c534a9c8ef2;hpb=28026a9f6aee143c644be2be98d16f2fa66b34f4;p=libfirm diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index ef1f544ee..a3b484fe2 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -1,22 +1,30 @@ /* - * Project: libFIRM - * File name: ir/ir/irgraph.c - * Purpose: Entry point to the representation of procedure code -- internal header. - * Author: Martin Trapp, Christian Schaefer - * Modified by: Goetz Lindenmaier, Michael Beck - * Created: - * CVS-ID: $Id$ - * Copyright: (c) 1998-2007 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * + * This file is part of libFirm. + * + * This file may be distributed and/or modified under the terms of the + * GNU General Public License version 2 as published by the Free Software + * Foundation and appearing in the file LICENSE.GPL included in the + * packaging of this file. + * + * Licensees holding valid libFirm Professional Edition licenses may use + * this file in accordance with the libFirm Commercial License. + * Agreement provided with the Software. + * + * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE + * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR + * PURPOSE. */ /** - * @file irgraph_t.h - * - * IR graph construction. + * @file + * @brief Entry point to the representation of procedure code -- internal header. + * @author Martin Trapp, Christian Schaefer, Goetz Lindenmaier, Michael Beck + * @version $Id$ */ -#ifndef _IRGRAPH_T_H_ -#define _IRGRAPH_T_H_ +#ifndef FIRM_IR_IRGRAPH_T_H +#define FIRM_IR_IRGRAPH_T_H #include "firm_types.h" #include "irgraph.h" @@ -27,8 +35,6 @@ #include "pseudo_irg.h" #include "type_t.h" #include "entity_t.h" -#include "typegmod.h" -#include "tr_inheritance.h" #include "iredgekinds.h" #include "irmemory.h" @@ -597,6 +603,8 @@ irg_register_node_idx(ir_graph *irg, ir_node *irn) static INLINE void irg_kill_node(ir_graph *irg, ir_node *n) { unsigned idx = get_irn_idx(n); + assert(idx + 1 == irg->last_node_idx); + if (idx + 1 == irg->last_node_idx) --irg->last_node_idx; irg->idx_irn_map[idx] = NULL; @@ -682,4 +690,4 @@ get_idx_irn(ir_graph *irg, unsigned idx) { #define get_irg_estimated_node_cnt(irg) _get_irg_estimated_node_cnt(irg) #define get_irg_fp_model(irg) _get_irg_fp_model(irg) -# endif /* _IRGRAPH_T_H_ */ +#endif