]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: construct ir.FuncType within typecheck.DeclFunc
authorMatthew Dempsky <mdempsky@google.com>
Tue, 3 May 2022 22:29:43 +0000 (15:29 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 5 May 2022 18:49:17 +0000 (18:49 +0000)
commit5073c1c7407ad5f23e54cc0a6410ffbde23758bb
tree8571f2ea5e0535c731042d19132ea5a2eb73f17b
parentcce00643992995ce3ca4eca301bac77a72e10d8e
cmd/compile: construct ir.FuncType within typecheck.DeclFunc

Currently all typecheck.DeclFunc callers already construct a fresh new
ir.FuncType, which is the last type expression kind that we represent
in IR.

This CL pushes all of the ir.FuncType construction down into
typecheck.DeclFunc. The next CL will simplify the internals so that we
can get rid of ir.FuncType altogether.

Change-Id: I221ed324f157eb38bb57c8886609f53cc4fd99fe
Reviewed-on: https://go-review.googlesource.com/c/go/+/403848
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/pkginit/init.go
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/ssagen/abi.go
src/cmd/compile/internal/typecheck/dcl.go
src/cmd/compile/internal/walk/closure.go