]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link/internal/loadpe: refactor readpesym()
authorThan McIntosh <thanm@google.com>
Wed, 2 Feb 2022 18:26:16 +0000 (13:26 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 31 Mar 2022 12:55:00 +0000 (12:55 +0000)
commit0a5bbba366de5bf833a742e9001538ea10122d6c
tree77b63be4e6c5b4b73e966c0bb8bac18d9a3b2f9f
parentebe624dd30f7be1479a2224b60a0da1b152ec851
cmd/link/internal/loadpe: refactor readpesym()

Rewrite the helper "readpesym()" and the code that calls it to pass in
most of the values it needs via a state object (the signature was
getting a bit too busy/lengthy). No change in functionality, this is
just a refactor.

Updates #35006.

Change-Id: I6153ee3a9be3eb885694323ae8e07ec4c8eed646
Reviewed-on: https://go-review.googlesource.com/c/go/+/382836
Reviewed-by: Cherry Mui <cherryyz@google.com>
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/link/internal/loadpe/ldpe.go