move some debug output out of main

This commit is contained in:
Quentin Carbonneaux 2015-07-22 06:33:10 -04:00
parent 7202c7dedf
commit 2a4fbbc6e0
2 changed files with 12 additions and 9 deletions

View file

@ -111,6 +111,14 @@ fillcost(Fn *fn)
}
symuse(b->jmp.arg, 1, n, fn);
}
if (debug['S']) {
fprintf(stderr, "> Spill costs:\n");
for (n=Tmp0; n<fn->ntmp; n++)
fprintf(stderr, "\t%-10s %d\n",
fn->sym[n].name,
fn->sym[n].cost);
fprintf(stderr, "\n");
}
}
int