~mpu/qbe

Emit .type and .size directives on RISC-V and ARM v1 APPLIED

Alexey Yerin: 1
 Emit .type and .size directives on RISC-V and ARM

 2 files changed, 3 insertions(+), 0 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~mpu/qbe/patches/39272/mbox | git am -3
Learn more about email & git

[PATCH] Emit .type and .size directives on RISC-V and ARM Export this patch

To match x86
---
Note sure if T.apple check is really necessary here
 arm64/emit.c | 2 ++
 rv64/emit.c  | 1 +
 2 files changed, 3 insertions(+)

diff --git a/arm64/emit.c b/arm64/emit.c
index 5113c66..ee1593f 100644
--- a/arm64/emit.c
+++ b/arm64/emit.c
@@ -636,4 +636,6 @@ arm64_emitfn(Fn *fn, FILE *out)
		}
	}
	id0 += e->fn->nblk;
	if (!T.apple)
		elf_emitfnfin(fn->name, out);
}
diff --git a/rv64/emit.c b/rv64/emit.c
index f9df146..acb6df3 100644
--- a/rv64/emit.c
+++ b/rv64/emit.c
@@ -557,4 +557,5 @@ rv64_emitfn(Fn *fn, FILE *f)
		}
	}
	id0 += fn->nblk;
	elf_emitfnfin(fn->name, f);
}
-- 
2.39.2
LGTM. Applied and pushed.