]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: skip reexporting types in reexportdep
authorMatthew Dempsky <mdempsky@google.com>
Thu, 2 Feb 2017 00:40:46 +0000 (16:40 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 2 Feb 2017 04:25:40 +0000 (04:25 +0000)
commitedad59cfae70d2bfb9cdf66e2492f9a1c1318ddc
treed8f3867479a1dad931de18d9dec1233a2d88b1a7
parent16dd0624c204ced87ea950b129c5c26d82e2aad4
cmd/compile: skip reexporting types in reexportdep

The binary export format embeds type definitions inline as necessary,
so there's no need to add them to exportlist. Also, constants are
embedded directly by value, so they can be omitted too.

Change-Id: Id1879eb97c298a5a52f615cf9883c346c7f7bd69
Reviewed-on: https://go-review.googlesource.com/36170
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/export.go