]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: rework relocation handling in new deadcode
authorThan McIntosh <thanm@google.com>
Thu, 17 Oct 2019 13:22:01 +0000 (09:22 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 25 Oct 2019 16:51:18 +0000 (16:51 +0000)
commit376ef734a7d2cec8764ec34ab51902028101b630
treecd89077889e666bb79de665ad72ad71bdad7e272
parentfb066098171c349355f2ad1e8d40d56d64673dc9
[dev.link] cmd/link: rework relocation handling in new deadcode

Do a better job of reading relocations in the new deadcode pass.
Specifically, during method type processing, read relocations for the
symbol we're working on into a slice, and then pass the slice to
helper functions, as opposed to rereading relocs at each stage.

Change-Id: I95e3737ae91bb09b4da8e6ee68112ec255ceb0fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/201722
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/link/internal/ld/deadcode2.go