mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: embed type string header in rtype
Reduces binary size of cmd/go by 1%. For #6853. Change-Id: I6f2992a4dd3699db1b532ab08683e82741b9c2e4 Reviewed-on: https://go-review.googlesource.com/19692 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
8dd2ce2b98
commit
a858931200
12 changed files with 61 additions and 59 deletions
|
|
@ -184,7 +184,7 @@ func dumptype(t *_type) {
|
|||
dumpint(uint64(uintptr(unsafe.Pointer(t))))
|
||||
dumpint(uint64(t.size))
|
||||
if t.x == nil || t.x.pkgpath == nil || t.x.name == nil {
|
||||
dumpstr(*t._string)
|
||||
dumpstr(t._string)
|
||||
} else {
|
||||
pkgpath := stringStructOf(t.x.pkgpath)
|
||||
name := stringStructOf(t.x.name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue