closureStub: SetLinkage linkonce

This commit is contained in:
xushiwei
2024-05-06 00:17:39 +08:00
parent 9da90e7ecf
commit 26b812a62a
4 changed files with 5 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ _llgo_0:
declare void @"github.com/goplus/llgo/internal/runtime.init"()
define void @__llgo_stub.main.print(ptr %0, ptr %1) {
define linkonce void @__llgo_stub.main.print(ptr %0, ptr %1) {
_llgo_0:
call void @main.print(ptr %1)
ret void

View File

@@ -163,7 +163,7 @@ declare void @"github.com/goplus/llgo/internal/runtime.init"()
declare i32 @rand()
define i32 @__llgo_stub.rand(ptr %0) {
define linkonce i32 @__llgo_stub.rand(ptr %0) {
_llgo_0:
%1 = call i32 @rand()
ret i32 %1