]> Cypherpunks repositories - gostls13.git/commit
cmd/link, reflect: remove some method type data
authorDavid Crawshaw <crawshaw@golang.org>
Wed, 23 Mar 2016 01:25:40 +0000 (21:25 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Wed, 23 Mar 2016 17:00:43 +0000 (17:00 +0000)
commit44d3f89e99b954d88ab802212182a7c123ac774a
treeae91d030c6db0105763feeab9205bc1eb74371a7
parentc1892b9c4b321b03973aa4433ec7cd8fe0a307a9
cmd/link, reflect: remove some method type data

Remove reflect type information for unexported methods that do not
satisfy any interface in the program.

Ideally the unexported method would not appear in the method list at
all, but that is tricky because the slice is built by the compiler.

Reduces binary size:

cmd/go: 81KB (0.8%)
jujud: 258KB (0.4%)

For #6853.

Change-Id: I25ef8df6907e9ac03b18689d584ea46e7d773043
Reviewed-on: https://go-review.googlesource.com/21033
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/ld/deadcode.go
src/reflect/all_test.go
src/reflect/type.go