]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cleaner solution for importing init functions
authorMatthew Dempsky <mdempsky@google.com>
Thu, 26 Apr 2018 22:25:36 +0000 (15:25 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 26 Apr 2018 23:21:28 +0000 (23:21 +0000)
commitae2a2d12f6d8cde35637a13f384f6de524112768
tree226b151cd9c82a3f25d58e5ee365025113b385f3
parent148a26539b9cd57475656f986dd3088914503458
cmd/compile: cleaner solution for importing init functions

Using oldname+resolve is how typecheck handles this anyway.

Passes toolstash -cmp, with both -iexport enabled and disabled.

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