]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify noding for struct embedding
authorMatthew Dempsky <mdempsky@google.com>
Thu, 24 Aug 2017 22:36:47 +0000 (15:36 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 25 Aug 2017 08:18:58 +0000 (08:18 +0000)
commit180bfc4bd49343cb280d1e162a4d326db7b35a6f
treec019f17228fd4cbe9eebff90c676f008ec33cc7a
parenta9f832a6aedbce206d44d099c67448e8aa747690
cmd/compile: simplify noding for struct embedding

Since golang.org/cl/31670, we've stopped using the 'embedded' function
for handling struct embeddings within package export data. Now the
only remaining use is for Go source files, which allows for some
substantial simplifications:

1. CenterDot never appears within Go source files, so that logic can
simply be removed.

2. The field name will always be declared in the local package.

Passes toolstash-check.

Change-Id: I59505f62824206dd5de0782918f98fbef6e93224
Reviewed-on: https://go-review.googlesource.com/58790
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/dcl.go
src/cmd/compile/internal/gc/noder.go