]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile/internal/gc: prep for Func.Nname removal refactoring
authorMatthew Dempsky <mdempsky@google.com>
Sun, 22 Nov 2020 18:45:44 +0000 (10:45 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 24 Nov 2020 01:34:20 +0000 (01:34 +0000)
commitd5928847debd0b16f89a5fd018646b2e3e9a8cb9
tree773882701e6dee3997ba737a5a092fcbe41b47a1
parentb30c7a80443c6aed5a7f57ae4c57d691ea88ad9a
[dev.regabi] cmd/compile/internal/gc: prep for Func.Nname removal refactoring

There are three bits of method-handling code where we separately go
from Field->Type and then Type->Node. By shuffling the code around a
little to go Field->Type->Node in a single statement, we're able to
more easily remove Type from the operation.

Passes toolstash-check.

Change-Id: Ife98216d70d3b867fa153449abef0e56a4fb242a
Reviewed-on: https://go-review.googlesource.com/c/go/+/272388
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/compile/internal/gc/bexport.go
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/iexport.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/typecheck.go