internal/cabi: TestBuild TestABI

This commit is contained in:
visualfc
2025-08-12 12:04:32 +08:00
parent d2d999d369
commit 5fe7ee9b6a
134 changed files with 34454 additions and 6 deletions

View File

@@ -272,19 +272,19 @@ func (p *TypeInfoArm) GetTypeInfo(ctx llvm.Context, typ llvm.Type, bret bool) *T
return info
}
type TypeInfo32 struct {
type TypeInfoWasm struct {
*Transformer
}
func (p *TypeInfo32) SupportByVal() bool {
func (p *TypeInfoWasm) SupportByVal() bool {
return true
}
func (p *TypeInfo32) IsWrapType(ctx llvm.Context, typ llvm.Type, bret bool) bool {
func (p *TypeInfoWasm) IsWrapType(ctx llvm.Context, typ llvm.Type, bret bool) bool {
return elementTypesCount(typ) >= 2
}
func (p *TypeInfo32) GetTypeInfo(ctx llvm.Context, typ llvm.Type, bret bool) *TypeInfo {
func (p *TypeInfoWasm) GetTypeInfo(ctx llvm.Context, typ llvm.Type, bret bool) *TypeInfo {
info := &TypeInfo{}
info.Type = typ
info.Type1 = typ