]> Cypherpunks repositories - gostls13.git/commit
cmd/link: refactor setCgoAttr
authorAustin Clements <austin@google.com>
Sun, 11 Apr 2021 20:30:36 +0000 (16:30 -0400)
committerAustin Clements <austin@google.com>
Tue, 13 Apr 2021 20:07:43 +0000 (20:07 +0000)
commit6208b10d1e843e49a8cff42ed17f548530fc7452
tree499bf34e245cf2e1fa78641be36a1413ea82147d
parent10f883deb7462baad0c889d93fe867782c023bbe
cmd/link: refactor setCgoAttr

setCgoAttr takes a lookup function, but there's only a single call and
setCgoAttr already has access to the lookup function passed at that
call. Simplify setCgoAttr by eliminating the lookup parameter and
calling the lookup function directly.

For #40724.

Change-Id: Ib27c0fa2b88c387e30423365f7757e3ba02cf7d5
Reviewed-on: https://go-review.googlesource.com/c/go/+/309338
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/link/internal/ld/go.go
src/cmd/link/internal/ld/lib.go