]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/ssa: simplify NewFunc API
authorMatthew Dempsky <mdempsky@google.com>
Thu, 7 Sep 2023 04:43:58 +0000 (21:43 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 8 Sep 2023 19:01:04 +0000 (19:01 +0000)
commit9c9fcabb024fc835d7b19249ea59c9e8cf9ed882
treef4bf97eaf74f6a61ec64698e6fb4786e5267a4ae
parent729e21b24c12fe3e4be724672ab63429be8247a6
cmd/compile/internal/ssa: simplify NewFunc API

Add Config and Cache as params rather than documenting that the caller
has to set them manually.

Change-Id: I8d530be695a0c94bcc4211b496d6e57ec2fff029
Reviewed-on: https://go-review.googlesource.com/c/go/+/526515
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/ssa/func.go
src/cmd/compile/internal/ssa/func_test.go
src/cmd/compile/internal/ssagen/ssa.go