ssa: fix abiType && abiMethoOf

This commit is contained in:
visualfc
2024-06-23 06:51:09 +08:00
parent 5238c2457d
commit 16352df5b1
17 changed files with 3064 additions and 4409 deletions

View File

@@ -8,6 +8,7 @@ import (
"unsafe"
"github.com/goplus/llgo/internal/abi"
_ "github.com/goplus/llgo/internal/runtime"
)
// Value is the reflection interface to a Go value.

View File

@@ -291,6 +291,10 @@ func IfacePtrData(i iface) unsafe.Pointer {
return i.data
}
func SetDirectIface(t *abi.Type) {
t.Kind_ |= abi.KindDirectIface
}
// Implements reports whether the type V implements the interface type T.
func Implements(T, V *abi.Type) bool {
if V == nil {