X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fdebug%2Ffirm_ycomp.c;h=76fa41da6264a3fbffa26f6ee18d818501eca062;hb=2f7da22ade10e502888999170ef42fcf9a619852;hp=febcf9ff1f3208dbdea5b6ad7046efb1429f0989;hpb=7b9845d0fd8dca046df792801e1565b54582287d;p=libfirm diff --git a/ir/debug/firm_ycomp.c b/ir/debug/firm_ycomp.c index febcf9ff1..76fa41da6 100644 --- a/ir/debug/firm_ycomp.c +++ b/ir/debug/firm_ycomp.c @@ -1,13 +1,28 @@ /* - * Project: libFIRM - * File name: ir/debug/firm_ycomp.c - * Purpose: Connect firm to ycomp - * Author: Christian Wuerdig - * Modified by: - * Created: 16.11.2006 - * CVS-ID: $Id$ - * Copyright: (c) 2001-2006 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 Connect firm to ycomp + * @author Christian Wuerdig + * @date 16.11.2006 + * @version $Id$ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -296,9 +311,12 @@ static void firm_ycomp_debug_new_node(void *context, ir_graph *graph, ir_node *n /** * Clear the old irg if it has some data and create a new one. */ -static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg, ir_entity *ent) { +static void firm_ycomp_debug_new_irg(void *context, ir_graph *irg, + ir_entity *ent) +{ firm_ycomp_dbg_t *dbg = context; char buf[SEND_BUF_SIZE]; + (void) irg; if (yy_dbg.has_data) { send_cmd(dbg, "deleteGraph\n"); @@ -495,6 +513,7 @@ static void firm_ycomp_debug_turn_into_id(void *context, ir_node *old_node) { */ static void firm_ycomp_debug_dead_node_elim(void *context, ir_graph *irg, int start) { firm_ycomp_dbg_t *dbg = context; + (void) irg; dbg->in_dead_node_elim = start != 0; }