be_Return constructor now takes a debug info
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Mar 2006 02:48:00 +0000 (02:48 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 28 Mar 2006 02:48:00 +0000 (02:48 +0000)
ir/be/beabi.c
ir/be/benode.c
ir/be/benode_t.h

index 7c7a301..9220fce 100644 (file)
@@ -1340,7 +1340,7 @@ static void modify_irg(be_abi_irg_t *env)
                        }
 
                        /* The in array for the new back end return is now ready. */
-                       ret = be_new_Return(irg, bl, n, in);
+                       ret = be_new_Return(get_irn_dbg_info(irn), irg, bl, n, in);
 
                        /* Set the register classes of the return's parameter accordingly. */
                        for(i = 0; i < n; ++i)
index 242aa72..79739b7 100644 (file)
@@ -92,7 +92,7 @@ typedef struct {
 typedef struct {
        be_node_attr_t node_attr;
        int offset;           /**< The offset by which the stack shall be increased/decreased. */
-       be_stack_dir_t dir;   /**< The direction in which the stack shall be modified (along or in the other direction). */
+       be_stack_dir_t dir;   /**< The direction in which the stack shall be modified (expand or shrink). */
 } be_stack_attr_t;
 
 typedef struct {
@@ -370,9 +370,9 @@ void    be_Call_set_entity(ir_node *call, entity *ent)
        a->ent = ent;
 }
 
-ir_node *be_new_Return(ir_graph *irg, ir_node *bl, int n, ir_node *in[])
+ir_node *be_new_Return(dbg_info *dbg, ir_graph *irg, ir_node *bl, int n, ir_node *in[])
 {
-       ir_node *irn = new_ir_node(NULL, irg, bl, op_be_Return, mode_X, n, in);
+       ir_node *irn = new_ir_node(dbg, irg, bl, op_be_Return, mode_X, n, in);
        init_node_attr(irn, n);
 
        return irn;
index 3e620c4..eff676f 100644 (file)
@@ -167,7 +167,7 @@ enum {
 };
 
 ir_node *be_new_Call(ir_graph *irg, ir_node *bl, ir_node *mem, ir_node *sp, ir_node *ptr, int n_outs, int n, ir_node *in[]);
-ir_node *be_new_Return(ir_graph *irg, ir_node *bl, int n, ir_node *in[]);
+ir_node *be_new_Return(dbg_info *dbg, ir_graph *irg, ir_node *bl, int n, ir_node *in[]);
 ir_node *be_new_StackParam(const arch_register_class_t *cls, const arch_register_class_t *cls_frame, ir_graph *irg, ir_node *bl, ir_mode *mode, ir_node *frame_pointer, entity *ent);
 ir_node *be_new_RegParams(ir_graph *irg, ir_node *bl, int n_out);