diff options
| author | 2023-06-05 09:32:17 +0200 | |
|---|---|---|
| committer | 2023-06-05 09:32:17 +0200 | |
| commit | efc0cf8039cbff5e0f0d52fd7414c7186129b6ac (patch) | |
| tree | 27aabd39ebe1c778f052edaf7088eded379f0108 /irdump.c | |
| parent | 6ce2ac20e1d9095281a233aeb778d0fa2c82dd74 (diff) | |
command line switch for debug options
Diffstat (limited to 'irdump.c')
| -rw-r--r-- | irdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,3 @@ -#include "common.h" #include "ir.h" extern struct xcon conht[]; @@ -150,7 +149,7 @@ irdump(struct function *fn, const char *fname) struct block *blk; efmt("function %s : %ty\n", fname, fn->fnty); - if (fn->abiarg || fn->retty.t != TYVOID) { + if (fn->abiarg || fn->nabiret) { efmt("abi: ("); for (int i = 0; i < fn->nabiarg; ++i) { if (i > 0) efmt(", "); @@ -173,6 +172,7 @@ irdump(struct function *fn, const char *fname) do { dumpblk(fn, blk); } while ((blk = blk->lnext) != fn->entry); + efmt("\n"); } /* vim:set ts=3 sw=3 expandtab: */ |