ssa: uniform byte and uint8 name on different platforms
This commit is contained in:
@@ -239,7 +239,11 @@ func FullName(pkg *types.Package, name string) string {
|
|||||||
|
|
||||||
// BasicName returns the ABI type name for the specified basic type.
|
// BasicName returns the ABI type name for the specified basic type.
|
||||||
func BasicName(t *types.Basic) string {
|
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.
|
// FuncName returns the ABI type name for the specified function type.
|
||||||
|
|||||||
Reference in New Issue
Block a user