qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 2642ff022c377c3e8594a99841cc08c1f6285944
parent e53054c0764bd088b51f893dcb33b5321422eff7
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Thu,  8 Oct 2015 22:05:30 -0400

improve debug output

Diffstat:
Mlisc/main.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/lisc/main.c b/lisc/main.c @@ -27,6 +27,8 @@ dumpts(Bits *b, Tmp *tmp, FILE *f) static void data(Dat *d) { + if (dbg) + return; if (d->type == DEnd) { puts("/* end data */\n"); freeall(); @@ -39,6 +41,8 @@ func(Fn *fn) { int n; + if (dbg) + fprintf(stderr, "**** Function %s ****", fn->name); if (debug['P']) { fprintf(stderr, "\n> After parsing:\n"); printfn(fn, stderr);