* @param reason indicates which kind of information should be dumped
* @return 0 on success or != 0 on failure
*/
-static int dump_node_mips(ir_node *n, FILE *F, dump_reason_t reason) {
+static int mips_dump_node(ir_node *n, FILE *F, dump_reason_t reason) {
ir_mode *mode = NULL;
int bad = 0;
int i;
attr->out_req = out_reqs;
attr->n_res = n_res;
- if(n_res) {
- attr->slots = xcalloc(n_res, sizeof(attr->slots[0]));
- } else {
- attr->slots = NULL;
- }
attr->in_req = in_reqs;
+
+ memset((void *)attr->slots, 0, n_res * sizeof(attr->slots[0]));
}
/************************************************************************