From 99b96354f30cc378356372557e409a5eb63edaf1 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 16 Nov 2007 15:35:50 +0000 Subject: [PATCH] removed unused proj_args of a graph [r16558] --- ir/ir/irgraph.c | 11 ----------- ir/ir/irgraph_t.h | 10 ---------- ir/ir/irtypes.h | 3 +-- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index c20c61fe7..24fedff1e 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -259,7 +259,6 @@ ir_graph *new_r_ir_graph(ir_entity *ent, int n_loc) { #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. @@ -545,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); diff --git a/ir/ir/irgraph_t.h b/ir/ir/irgraph_t.h index c4411ad21..9fc51f38a 100644 --- a/ir/ir/irgraph_t.h +++ b/ir/ir/irgraph_t.h @@ -209,16 +209,6 @@ _set_irg_value_param_base(ir_graph *irg, ir_node *node) { set_irn_n(irg->anchor, anchor_value_param_base, node); } -static INLINE ir_node ** -_get_irg_proj_args(const ir_graph *irg) { - return irg->proj_args; -} - -static INLINE void -_set_irg_proj_args(ir_graph *irg, ir_node **nodes) { - irg->proj_args = nodes; -} - static INLINE ir_node * _get_irg_bad(const ir_graph *irg) { return get_irn_intra_n(irg->anchor, anchor_bad); diff --git a/ir/ir/irtypes.h b/ir/ir/irtypes.h index a23a85b9f..f68f7021a 100644 --- a/ir/ir/irtypes.h +++ b/ir/ir/irtypes.h @@ -416,8 +416,7 @@ struct ir_graph { class it belongs to. */ ir_type *frame_type; /**< A class type representing the stack frame. Can include "inner" methods. */ - ir_node *anchor; /**< The anchor node. */ - ir_node **proj_args; /**< Projs of the methods arguments. */ + ir_node *anchor; /**< Pointer to the anchor node of this graph. */ struct obstack *obst; /**< The obstack where all of the ir_nodes live. */ ir_node *current_block; /**< Current block for newly gen_*()-erated ir_nodes. */ struct obstack *extbb_obst; /**< The obstack for extended basic block info. */ -- 2.20.1