abi: support named

This commit is contained in:
xushiwei
2024-05-25 01:11:35 +08:00
parent 2a7be0eabb
commit 40dd25c122
9 changed files with 279 additions and 26 deletions

Binary file not shown.

View File

@@ -124,4 +124,10 @@ func Pointer(elem *Type) *Type {
return &ret.Type
}
// Named returns a named type.
func Named(name string, typ *Type) *Type {
ret := *typ // TODO(xsw): named type
return &ret
}
// -----------------------------------------------------------------------------