]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: add Interface, Signature, and Struct constructors
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 Dec 2020 21:07:35 +0000 (13:07 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 2 Dec 2020 06:42:17 +0000 (06:42 +0000)
commit77a71e0057357b0567cc5036f7e0f903d82705bb
treee8d28d921a4aeab51276f896754e61787654d2bd
parent15085f89746762e0919fa257feac3eb5b996e6db
[dev.regabi] cmd/compile: add Interface, Signature, and Struct constructors

This CL adds the remaining constructors needed to abstract away
construction of Types, and updates the compiler to use them
throughout. There's now just a couple uses within test cases to
remove.

While at it, I also replace the Func.Outnamed field with a simple
helper function, which reduces the size of function types somewhat.

Passes toolstash/buildall.

Change-Id: If1aa1095c98ae34b00380d0b3531bd63c10ce885
Reviewed-on: https://go-review.googlesource.com/c/go/+/274713
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/dcl.go
src/cmd/compile/internal/gc/iimport.go
src/cmd/compile/internal/gc/pgen_test.go
src/cmd/compile/internal/gc/reflect.go
src/cmd/compile/internal/gc/typecheck.go
src/cmd/compile/internal/gc/universe.go
src/cmd/compile/internal/gc/walk.go
src/cmd/compile/internal/types/sizeof_test.go
src/cmd/compile/internal/types/type.go