diff options
| author | Matthew Dempsky <mdempsky@google.com> | 2023-08-28 05:43:51 -0700 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-08-29 20:19:46 +0000 |
| commit | ad74bc4a92d0c903308b2e40fa07446a735dbbd2 (patch) | |
| tree | 825ed2c9102317bd1f32e4d5cab791b63cd9dc1d /src/cmd/internal/obj/plist.go | |
| parent | 98c26afa8c9c1016d205408e2afaba5824f4d930 (diff) | |
| download | go-ad74bc4a92d0c903308b2e40fa07446a735dbbd2.tar.xz | |
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>
Diffstat (limited to 'src/cmd/internal/obj/plist.go')
| -rw-r--r-- | src/cmd/internal/obj/plist.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/plist.go b/src/cmd/internal/obj/plist.go index 6aa5888d3d..cd6e2313ad 100644 --- a/src/cmd/internal/obj/plist.go +++ b/src/cmd/internal/obj/plist.go @@ -14,7 +14,7 @@ import ( type Plist struct { Firstpc *Prog - Curfn interface{} // holds a *gc.Node, if non-nil + Curfn Func } // ProgAlloc is a function that allocates Progs. |
