cl: importPkg support linkname of method
This commit is contained in:
@@ -5,15 +5,10 @@ source_filename = "github.com/goplus/llgo/x/sqlite"
|
||||
|
||||
@"github.com/goplus/llgo/x/sqlite.init$guard" = global ptr null
|
||||
|
||||
define ptr @"(github.com/goplus/llgo/x/sqlite.Errno).Errstr"(i32 %0) {
|
||||
_llgo_0:
|
||||
ret ptr null
|
||||
}
|
||||
|
||||
define ptr @"(*github.com/goplus/llgo/x/sqlite.Errno).Errstr"(ptr %0) {
|
||||
_llgo_0:
|
||||
%1 = load i32, ptr %0, align 4
|
||||
%2 = call ptr @"(github.com/goplus/llgo/x/sqlite.Errno).Errstr"(i32 %1)
|
||||
%2 = call ptr @sqlite3_errstr()
|
||||
ret ptr %2
|
||||
}
|
||||
|
||||
@@ -37,43 +32,13 @@ _llgo_0:
|
||||
ret { ptr, i32 } %mrv1
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).Close"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).CloseV2"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).Errcode"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define ptr @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).Errmsg"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret ptr null
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).Exec"(ptr %0, ptr %1, { ptr, ptr } %2, ptr %3, ptr %4) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).ExtendedErrcode"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define { ptr, i32 } @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).Prepare"(ptr %0, %"github.com/goplus/llgo/internal/runtime.String" %1, ptr %2) {
|
||||
_llgo_0:
|
||||
%3 = call ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64 8)
|
||||
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.StringData"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%5 = call i64 @"github.com/goplus/llgo/internal/runtime.StringLen"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%6 = trunc i64 %5 to i32
|
||||
%7 = call i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepare"(ptr %0, ptr %4, i32 %6, ptr %3, ptr %2)
|
||||
%7 = call i32 @sqlite3_prepare(ptr %0, ptr %4, i32 %6, ptr %3, ptr %2)
|
||||
%8 = load ptr, ptr %3, align 8
|
||||
%mrv = insertvalue { ptr, i32 } poison, ptr %8, 0
|
||||
%mrv1 = insertvalue { ptr, i32 } %mrv, i32 %7, 1
|
||||
@@ -86,7 +51,7 @@ _llgo_0:
|
||||
%4 = call ptr @"github.com/goplus/llgo/internal/runtime.StringData"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%5 = call i64 @"github.com/goplus/llgo/internal/runtime.StringLen"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%6 = trunc i64 %5 to i32
|
||||
%7 = call i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepareV2"(ptr %0, ptr %4, i32 %6, ptr %3, ptr %2)
|
||||
%7 = call i32 @sqlite3_prepare_v2(ptr %0, ptr %4, i32 %6, ptr %3, ptr %2)
|
||||
%8 = load ptr, ptr %3, align 8
|
||||
%mrv = insertvalue { ptr, i32 } poison, ptr %8, 0
|
||||
%mrv1 = insertvalue { ptr, i32 } %mrv, i32 %7, 1
|
||||
@@ -99,83 +64,13 @@ _llgo_0:
|
||||
%5 = call ptr @"github.com/goplus/llgo/internal/runtime.StringData"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%6 = call i64 @"github.com/goplus/llgo/internal/runtime.StringLen"(%"github.com/goplus/llgo/internal/runtime.String" %1)
|
||||
%7 = trunc i64 %6 to i32
|
||||
%8 = call i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepareV3"(ptr %0, ptr %5, i32 %7, i32 %2, ptr %4, ptr %3)
|
||||
%8 = call i32 @sqlite3_prepare_v3(ptr %0, ptr %5, i32 %7, i32 %2, ptr %4, ptr %3)
|
||||
%9 = load ptr, ptr %4, align 8
|
||||
%mrv = insertvalue { ptr, i32 } poison, ptr %9, 0
|
||||
%mrv1 = insertvalue { ptr, i32 } %mrv, i32 %8, 1
|
||||
ret { ptr, i32 } %mrv1
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepare"(ptr %0, ptr %1, i32 %2, ptr %3, ptr %4) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepareV2"(ptr %0, ptr %1, i32 %2, ptr %3, ptr %4) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Sqlite3).doPrepareV3"(ptr %0, ptr %1, i32 %2, i32 %3, ptr %4, ptr %5) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).BindInt"(ptr %0, i32 %1, i32 %2) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).BindInt64"(ptr %0, i32 %1, i64 %2) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).BindText"(ptr %0, i32 %1, ptr %2, i32 %3, { ptr, ptr } %4) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).Close"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).ColumnCount"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).ColumnInt"(ptr %0, i32 %1) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i64 @"(*github.com/goplus/llgo/x/sqlite.Stmt).ColumnInt64"(ptr %0, i32 %1) {
|
||||
_llgo_0:
|
||||
ret i64 0
|
||||
}
|
||||
|
||||
define ptr @"(*github.com/goplus/llgo/x/sqlite.Stmt).ColumnName"(ptr %0, i32 %1) {
|
||||
_llgo_0:
|
||||
ret ptr null
|
||||
}
|
||||
|
||||
define ptr @"(*github.com/goplus/llgo/x/sqlite.Stmt).ColumnText"(ptr %0, i32 %1) {
|
||||
_llgo_0:
|
||||
ret ptr null
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).Reset"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define i32 @"(*github.com/goplus/llgo/x/sqlite.Stmt).Step"(ptr %0) {
|
||||
_llgo_0:
|
||||
ret i32 0
|
||||
}
|
||||
|
||||
define void @"github.com/goplus/llgo/x/sqlite.init"() {
|
||||
_llgo_0:
|
||||
%0 = load i1, ptr @"github.com/goplus/llgo/x/sqlite.init$guard", align 1
|
||||
@@ -189,6 +84,8 @@ _llgo_2: ; preds = %_llgo_1, %_llgo_0
|
||||
ret void
|
||||
}
|
||||
|
||||
declare ptr @sqlite3_errstr()
|
||||
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.AllocZ"(i64)
|
||||
|
||||
declare i32 @sqlite3_open(ptr, ptr)
|
||||
@@ -198,3 +95,9 @@ declare i32 @sqlite3_open_v2(ptr, ptr, i32, ptr)
|
||||
declare ptr @"github.com/goplus/llgo/internal/runtime.StringData"(%"github.com/goplus/llgo/internal/runtime.String")
|
||||
|
||||
declare i64 @"github.com/goplus/llgo/internal/runtime.StringLen"(%"github.com/goplus/llgo/internal/runtime.String")
|
||||
|
||||
declare i32 @sqlite3_prepare(ptr, i32, ptr, ptr)
|
||||
|
||||
declare i32 @sqlite3_prepare_v2(ptr, i32, ptr, ptr)
|
||||
|
||||
declare i32 @sqlite3_prepare_v3(ptr, i32, i32, ptr, ptr)
|
||||
|
||||
Reference in New Issue
Block a user