aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-13 10:55:35 +0200
committerlemon <lsof@mailbox.org>2023-06-13 11:04:31 +0200
commit3e5c11563f8cb7c843c71a0f761e5b644f39db46 (patch)
tree1192d4ba899b031ca99cf5a79fc814d98bed1e76 /irdump.c
parent427d2298cd6f6e4da9a31c723a79a36267aebbc1 (diff)
lower allocas in isel() instead of emit() and misc fixes
Diffstat (limited to 'irdump.c')
-rw-r--r--irdump.c6
1 files changed, 3 insertions, 3 deletions
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) {