]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: skip compiling wrappers for imported defined types
authorMatthew Dempsky <mdempsky@google.com>
Mon, 30 Oct 2017 19:16:30 +0000 (12:16 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 30 Oct 2017 22:03:33 +0000 (22:03 +0000)
commit03c8c566829d4bdc7a1c2053124643e32a6d2365
treef8597835c51e3a787bf9897d50368b41350e7297
parent84e91e1d6b2fed3e19d69194067cc2797f503b95
cmd/compile: skip compiling wrappers for imported defined types

When compiling a package that defines a type T with method T.M, we
already compile and emit the wrapper method (*T).M. There's no need
for every package that uses T to do the same.

Change-Id: I3ca2659029907570f8b98d66111686435fad7ed0
Reviewed-on: https://go-review.googlesource.com/74412
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/cmd/compile/internal/gc/subr.go