From 3a1332a3ef152098ab60ec5a30c66e495abd8ba0 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Mon, 19 Jan 2009 23:12:13 +0000 Subject: [PATCH] - implemented get_irg_value_param_type() [r25272] --- include/libfirm/irgraph.h | 3 +++ ir/ir/irgraph.c | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/include/libfirm/irgraph.h b/include/libfirm/irgraph.h index 3aed3b959..87bb9dc10 100644 --- a/include/libfirm/irgraph.h +++ b/include/libfirm/irgraph.h @@ -202,6 +202,9 @@ ir_type *get_irg_frame_type(ir_graph *irg); /** Sets the frame type of an IR graph. */ void set_irg_frame_type(ir_graph *irg, ir_type *ftp); +/** Returns the value parameter type of an IR graph. */ +ir_type *get_irg_value_param_type(ir_graph *irg); + /** Returns the start block of an IR graph. */ ir_node *get_irg_start_block(const ir_graph *irg); /** Sets the start block of an IR graph. */ diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index 9e7426115..df317c708 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -748,6 +748,13 @@ void _set_irg_frame_type(irg, ftp); } +/* Returns the value parameter type of an IR graph. */ +ir_type *get_irg_value_param_type(ir_graph *irg) { + ir_entity *ent = get_irg_entity(irg); + ir_type *mtp = get_entity_type(ent); + return get_method_value_param_type(mtp); +} + int get_irg_n_locs(ir_graph *irg) { if (get_opt_precise_exc_context()) -- 2.20.1