From efc0cf8039cbff5e0f0d52fd7414c7186129b6ac Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 5 Jun 2023 09:32:17 +0200 Subject: command line switch for debug options --- irdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'irdump.c') diff --git a/irdump.c b/irdump.c index 27f3edc..aa815e4 100644 --- a/irdump.c +++ b/irdump.c @@ -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: */ -- cgit v1.2.3