From 3e5c11563f8cb7c843c71a0f761e5b644f39db46 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 13 Jun 2023 10:55:35 +0200 Subject: lower allocas in isel() instead of emit() and misc fixes --- irdump.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'irdump.c') diff --git a/irdump.c b/irdump.c index 5ee817a..c41a196 100644 --- a/irdump.c +++ b/irdump.c @@ -180,7 +180,7 @@ dumpinst(const struct instr *ins) if (ins->cls) efmt("%s ", clsname[ins->cls]); efmt("%s = ", mctarg->rnames[ins->reg - 1]); - } else if (ins->cls && !ins->skip) { + } else if (ins->cls) { efmt("%s %%%d", clsname[ins->cls], ins - instrtab); efmt(" = "); } @@ -222,14 +222,14 @@ dumpblk(struct function *fn, struct block *blk) } void -irdump(struct function *fn, const char *fname) +irdump(struct function *fn) { struct block *blk; /* print datas that have never been printed before */ while (nextdat < dattab.n) pridat(&dattab.p[nextdat++]); - efmt("function %s : %ty\n", fname, fn->fnty); + efmt("function %s : %ty\n", fn->name, fn->fnty); if (fn->abiarg || fn->nabiret) { efmt("abi: ("); for (int i = 0; i < fn->nabiarg; ++i) { -- cgit v1.2.3