]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: simplify declaration importing
authorMatthew Dempsky <mdempsky@google.com>
Sat, 19 Dec 2020 03:38:13 +0000 (19:38 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 21 Dec 2020 19:42:00 +0000 (19:42 +0000)
commitcb4898a77d79f457d75f601fad6908dd85bdc772
tree7bea7c6a2c39306c9dd4277b365c7923ba25ec95
parent06915ac14dfb7c80f384e3446bc6fa474e6bfa94
[dev.regabi] cmd/compile: simplify declaration importing

Rather than creating Names w/ ONONAME earlier and later adding in the
details, this CL changes the import logic to create and add details at
the same time.

Passes buildall w/ toolstash -cmp.

Change-Id: Ifaabade3cef8cd80ddd6644bff79393b934255d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/279313
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/compile/internal/gc/export.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/typecheck.go