mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile, etc: use nameOff for rtype string
linux/amd64: cmd/go: -8KB (basically nothing) linux/amd64 PIE: cmd/go: -191KB (1.6%) jujud: -1.5MB (1.9%) Updates #6853 Fixes #15064 Change-Id: I0adbb95685e28be92e8548741df0e11daa0a9b5f Reviewed-on: https://go-review.googlesource.com/21777 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
bb52ceafea
commit
1492e7db05
14 changed files with 231 additions and 145 deletions
|
|
@ -184,7 +184,7 @@ func dumptype(t *_type) {
|
|||
dumpint(uint64(uintptr(unsafe.Pointer(t))))
|
||||
dumpint(uint64(t.size))
|
||||
if x := t.uncommon(); x == nil || x.pkgpath.name() == "" {
|
||||
dumpstr(t._string)
|
||||
dumpstr(t.string())
|
||||
} else {
|
||||
pkgpathstr := x.pkgpath.name()
|
||||
pkgpath := stringStructOf(&pkgpathstr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue