X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Fstructure.c;h=b73369a61bd5ef2444f0a7ab8b18e25ec4c5259b;hb=f6aeac6a547a52beb3cb663c5e63c05c9c3728ea;hp=94e63eaf7760b31fb849c3e0ee7edb3f2c6da783;hpb=805205b222b083dac604ea58c0930d044f68511a;p=libfirm diff --git a/ir/ana/structure.c b/ir/ana/structure.c index 94e63eaf7..b73369a61 100644 --- a/ir/ana/structure.c +++ b/ir/ana/structure.c @@ -1,13 +1,28 @@ /* - * Project: libFIRM - * File name: ir/ana/structure.c - * Purpose: Structure Analysis - * Author: Michael Beck - * Modified by: - * Created: 5.4.2007 - * CVS-ID: $Id: $ - * Copyright: (c) 2007 Universität Karlsruhe - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 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 + * @brief Structure Analysis + * @author Michael Beck + * @date 5.4.2007 + * @version $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -21,7 +36,6 @@ #include "irtools.h" #include "irgwalk.h" #include "array.h" -#include "irphase_t.h" #include "irdump.h" #include "debug.h" @@ -60,7 +74,7 @@ union ir_reg_or_blk { }; /* The debug handle. */ -DEBUG_ONLY(firm_dbg_module_t *dbg;) +DEBUG_ONLY(static firm_dbg_module_t *dbg;) /** * Returns the link of a region. @@ -988,7 +1002,7 @@ static void reduce(walk_env *env, ir_region *reg) { ir_reg_tree *construct_region_tree(ir_graph *irg) { walk_env env; ir_graph *rem = current_ir_graph; - ir_reg_tree *res = xmalloc(sizeof(*res)); + ir_reg_tree *res = XMALLOC(ir_reg_tree); obstack_init(&res->obst);