hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit 71465a4db2a0693314450e76e1de9ecff272235a
parent 4f116159a5912f3fada28e0c108d28645ebc7399
Author: Alexey Yerin <yyp@disroot.org>
Date:   Sun, 20 Feb 2022 16:54:48 +0300

cmd/harec: update for new QBE linkage syntax

Signed-off-by: Alexey Yerin <yyp@disroot.org>

Diffstat:
Mcmd/harec/gen.ha | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/harec/gen.ha b/cmd/harec/gen.ha @@ -50,7 +50,7 @@ fn gen_func(ctx: *context, decl: *unit::decl) void = { const ident = module::identuscore(fndecl.ident); defer free(ident); - fmt::fprintf(ctx.out, "{}function section \".text.{}\" \"ax\"", + fmt::fprintf(ctx.out, "{}section \".text.{}\" \"ax\" function", if (decl.exported) "export " else "", ident)!; const rtype = fntype.result; const has_rval =