]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: refactor how declarations are imported
authorMatthew Dempsky <mdempsky@google.com>
Tue, 17 Apr 2018 21:40:56 +0000 (14:40 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 20 Apr 2018 21:19:17 +0000 (21:19 +0000)
commitdd71e3fef4a2845ae33c493e7fcdd7702812669d
tree8900eb3d1033e3d4aebfb07a82a30dcf1117961b
parent514018c0aa2b0c260d39e080e7d42a4d47185ab0
cmd/compile: refactor how declarations are imported

This CL moves all of the logic for wiring up imported declarations
into export.go, so that it can be reused by the indexed importer
code. While here, increase symmetry across routines.

Passes toolstash-check.

Change-Id: I1ccec5c3999522b010e4d04ed56b632fd4d712d9
Reviewed-on: https://go-review.googlesource.com/107621
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/bimport.go
src/cmd/compile/internal/gc/export.go
src/cmd/compile/internal/gc/main.go