mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile, etc: use nameOff in uncommonType
linux/amd64 PIE: cmd/go: -62KB (0.5%) jujud: -550KB (0.7%) For #6853. Change-Id: Ieb67982abce5832e24b997506f0ae7108f747108 Reviewed-on: https://go-review.googlesource.com/22371 Run-TryBot: David Crawshaw <crawshaw@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
1492e7db05
commit
c165988360
7 changed files with 30 additions and 29 deletions
|
|
@ -183,10 +183,10 @@ func dumptype(t *_type) {
|
|||
dumpint(tagType)
|
||||
dumpint(uint64(uintptr(unsafe.Pointer(t))))
|
||||
dumpint(uint64(t.size))
|
||||
if x := t.uncommon(); x == nil || x.pkgpath.name() == "" {
|
||||
if x := t.uncommon(); x == nil || t.nameOff(x.pkgpath).name() == "" {
|
||||
dumpstr(t.string())
|
||||
} else {
|
||||
pkgpathstr := x.pkgpath.name()
|
||||
pkgpathstr := t.nameOff(x.pkgpath).name()
|
||||
pkgpath := stringStructOf(&pkgpathstr)
|
||||
namestr := t.name()
|
||||
name := stringStructOf(&namestr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue