abitype: support Patch

This commit is contained in:
xushiwei
2024-06-30 11:53:12 +08:00
parent c20bea50e3
commit 8c45eb7524
4 changed files with 18 additions and 9 deletions

View File

@@ -315,6 +315,9 @@ func lastParamType(prog Program, fn Expr) Type {
func (p Package) abiTypeInit(g Global, t types.Type, pub bool) {
b := p.afterBuilder()
if p.patch != nil {
t = p.patch(t)
}
tabi := b.abiTypeOf(t)
expr := g.Expr
var eq Expr