ssa: fix const for named string

This commit is contained in:
visualfc
2024-12-16 15:00:32 +08:00
parent a05bda9fc3
commit eaf7e56083
4 changed files with 106 additions and 64 deletions

View File

@@ -53,7 +53,7 @@ func dump(v any) {
func dumpTyp(t *abi.Type, sep string) {
print(sep)
println(t.Kind(), t.Size_, t.PtrBytes, t.Hash, t.TFlag, t.Align_, t.PtrToThis_, t.Uncommon())
println(t.String(), t.Kind(), t.Size_, t.PtrBytes, t.Hash, t.TFlag, t.Align_, t.PtrToThis_, t.Uncommon())
if t.Elem() != nil {
dumpTyp(t.Elem(), sep+"\telem: ")
}