diff options
| author | 2023-06-13 10:55:35 +0200 | |
|---|---|---|
| committer | 2023-06-13 11:04:31 +0200 | |
| commit | 3e5c11563f8cb7c843c71a0f761e5b644f39db46 (patch) | |
| tree | 1192d4ba899b031ca99cf5a79fc814d98bed1e76 /irdump.c | |
| parent | 427d2298cd6f6e4da9a31c723a79a36267aebbc1 (diff) | |
lower allocas in isel() instead of emit() and misc fixes
Diffstat (limited to 'irdump.c')
| -rw-r--r-- | irdump.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |