From 1566a834e1f2273d183bc12f9edfb9534d893a0e Mon Sep 17 00:00:00 2001 From: xushiwei Date: Thu, 20 Jun 2024 03:00:12 +0800 Subject: [PATCH] x --- cl/_testrt/strlen/out.ll | 3 +++ cl/_testrt/struct/out.ll | 3 +++ cl/_testrt/typalias/out.ll | 3 +++ 3 files changed, 9 insertions(+) diff --git a/cl/_testrt/strlen/out.ll b/cl/_testrt/strlen/out.ll index b4bf2fe1..917e6bd9 100644 --- a/cl/_testrt/strlen/out.ll +++ b/cl/_testrt/strlen/out.ll @@ -13,6 +13,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 + call void @syscall.init() store i8 72, ptr @main.format, align 1 store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1 store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1 @@ -40,6 +41,8 @@ _llgo_0: ret i32 0 } +declare void @syscall.init() + declare void @"github.com/goplus/llgo/internal/runtime.init"() declare i32 @strlen(ptr) diff --git a/cl/_testrt/struct/out.ll b/cl/_testrt/struct/out.ll index 8388292e..6c060f96 100644 --- a/cl/_testrt/struct/out.ll +++ b/cl/_testrt/struct/out.ll @@ -41,6 +41,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 + call void @syscall.init() store i8 72, ptr @main.format, align 1 store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1 store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1 @@ -78,4 +79,6 @@ declare ptr @"github.com/goplus/llgo/internal/runtime.Zeroinit"(ptr, i64) declare void @printf(ptr, ...) +declare void @syscall.init() + declare void @"github.com/goplus/llgo/internal/runtime.init"() diff --git a/cl/_testrt/typalias/out.ll b/cl/_testrt/typalias/out.ll index e77b0d59..778f876d 100644 --- a/cl/_testrt/typalias/out.ll +++ b/cl/_testrt/typalias/out.ll @@ -29,6 +29,7 @@ _llgo_0: _llgo_1: ; preds = %_llgo_0 store i1 true, ptr @"main.init$guard", align 1 + call void @syscall.init() store i8 72, ptr @main.format, align 1 store i8 101, ptr getelementptr inbounds (i8, ptr @main.format, i64 1), align 1 store i8 108, ptr getelementptr inbounds (i8, ptr @main.format, i64 2), align 1 @@ -62,6 +63,8 @@ _llgo_0: declare void @printf(ptr, ...) +declare void @syscall.init() + declare void @"github.com/goplus/llgo/internal/runtime.init"() declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)