ssa: uniform byte and uint8 name on different platforms

This commit is contained in:
Li Jie
2025-02-16 18:41:51 +08:00
parent 2be558d554
commit 7be79d81f9

View File

@@ -239,7 +239,11 @@ func FullName(pkg *types.Package, name string) string {
// BasicName returns the ABI type name for the specified basic type.
func BasicName(t *types.Basic) string {
return "_llgo_" + t.Name()
name := t.Name()
if name == "byte" {
name = "uint8"
}
return "_llgo_" + name
}
// FuncName returns the ABI type name for the specified function type.