- implemented get_irg_value_param_type()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Jan 2009 23:12:13 +0000 (23:12 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 19 Jan 2009 23:12:13 +0000 (23:12 +0000)
[r25272]

include/libfirm/irgraph.h
ir/ir/irgraph.c

index 3aed3b9..87bb9dc 100644 (file)
@@ -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. */
index 9e74261..df317c7 100644 (file)
@@ -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())