PyInit
This commit is contained in:
@@ -26,6 +26,7 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
|
||||
define void @main(i32 %0, ptr %1) {
|
||||
_llgo_0:
|
||||
call void @Py_Initialize()
|
||||
store i32 %0, ptr @__llgo_argc, align 4
|
||||
store ptr %1, ptr @__llgo_argv, align 8
|
||||
call void @"github.com/goplus/llgo/internal/runtime.init"()
|
||||
@@ -57,3 +58,5 @@ declare double @PyFloat_AsDouble()
|
||||
declare i32 @printf(ptr, ...)
|
||||
|
||||
declare ptr @PyBytes_AsString()
|
||||
|
||||
declare void @Py_Initialize()
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; ModuleID = 'math'
|
||||
source_filename = "math"
|
||||
|
||||
@__llgo_py.math.sqrt = external global ptr
|
||||
@__llgo_py.math.sqrt = linkonce global ptr null
|
||||
@"math.init$guard" = global ptr null
|
||||
@__llgo_py.math = linkonce global ptr null
|
||||
@0 = private unnamed_addr constant [5 x i8] c"math\00", align 1
|
||||
|
||||
Reference in New Issue
Block a user