]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: write type symbols referenced in ptabs
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 23 Sep 2016 22:39:31 +0000 (08:39 +1000)
committerDavid Crawshaw <crawshaw@golang.org>
Thu, 3 Nov 2016 14:07:34 +0000 (14:07 +0000)
commit8eb9fdaa0123fc98cb70f58801eb74c8a6f92817
tree51b8d1e7810c3aef0e05da0f62cc1803eb480ff1
parent5ac3e7d6a7717bf2f722803e1852ba991af4e724
cmd/compile: write type symbols referenced in ptabs

The exported symbol for a plugin can be the only reference to a
type in a program. In particular, "var F func()" will have
the type *func(), which is uncommon.

Fixes #17140

Change-Id: Ide2104edbf087565f5377374057ae54e0c00c57e
Reviewed-on: https://go-review.googlesource.com/29692
Run-TryBot: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
misc/cgo/testplugin/src/host/host.go
misc/cgo/testplugin/src/sub/plugin1/plugin1.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/link/internal/ld/deadcode.go