]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: add Func type to replace "curfn any"
authorMatthew Dempsky <mdempsky@google.com>
Mon, 28 Aug 2023 12:43:51 +0000 (05:43 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 29 Aug 2023 20:19:46 +0000 (20:19 +0000)
commitad74bc4a92d0c903308b2e40fa07446a735dbbd2
tree825ed2c9102317bd1f32e4d5cab791b63cd9dc1d
parent98c26afa8c9c1016d205408e2afaba5824f4d930
cmd/internal/obj: add Func type to replace "curfn any"

This adds a modicum of type safety to these APIs, which are otherwise
quite confusing to follow.

Change-Id: I268a9a1a99a47dcfef6dc1e9e5be13673af3fb85
Reviewed-on: https://go-review.googlesource.com/c/go/+/523396
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/dwarfgen/dwarf.go
src/cmd/internal/obj/dwarf.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/plist.go