From a619ce99e40de4eb4481a590970a881e9f24627a Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 11 Mar 2010 09:00:23 +0000 Subject: [PATCH] - fixed off-by-one error after phase refactoring - deleted header file of already gone irdump_grgen.c [r27287] --- ir/ir/irdump_grgen.h | 43 ---------------------------------- ir/opt/dead_code_elimination.c | 2 +- 2 files changed, 1 insertion(+), 44 deletions(-) delete mode 100644 ir/ir/irdump_grgen.h diff --git a/ir/ir/irdump_grgen.h b/ir/ir/irdump_grgen.h deleted file mode 100644 index 6937f1649..000000000 --- a/ir/ir/irdump_grgen.h +++ /dev/null @@ -1,43 +0,0 @@ -/* -* 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 -* @brief Write ir graph as a grgen construction rule -* @author Andreas Schoesser -* @version $Id$ -*/ - - -/** - * Dumps a complete irg in the grgen format - * irg: irg to dump - * filename: text file to dump to - * append: 1 if the new rule should be appended to the file, - * otherwise the previous contents are deleted - **/ -void dump_irg_grgen_file(ir_graph *irg, char *filename, int append); - -/** - * Like dump_irg_grgen_file dumps a complete irg in the grgen format - * irg: irg to dump - * suffix: suffix for the output file - * (e.g. "main"+ suffix +".grg") - **/ -void dump_irg_grgen(ir_graph *irg, char *suffix); diff --git a/ir/opt/dead_code_elimination.c b/ir/opt/dead_code_elimination.c index 87556535a..f212029ad 100644 --- a/ir/opt/dead_code_elimination.c +++ b/ir/opt/dead_code_elimination.c @@ -47,7 +47,7 @@ #include "pmap.h" /** a pointer to the new phases */ -static ir_phase *new_phases[PHASE_LAST]; +static ir_phase *new_phases[PHASE_LAST + 1]; /** * Reroute the inputs of a node from nodes in the old graph to copied nodes in -- 2.20.1