ssa: fix abiType && abiMethoOf
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user