aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-05 09:32:17 +0200
committerlemon <lsof@mailbox.org>2023-06-05 09:32:17 +0200
commitefc0cf8039cbff5e0f0d52fd7414c7186129b6ac (patch)
tree27aabd39ebe1c778f052edaf7088eded379f0108 /irdump.c
parent6ce2ac20e1d9095281a233aeb778d0fa2c82dd74 (diff)
command line switch for debug options
Diffstat (limited to 'irdump.c')
-rw-r--r--irdump.c4
1 files changed, 2 insertions, 2 deletions
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: */