]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: record go.itablink symbols during object file read
authorThan McIntosh <thanm@google.com>
Wed, 16 Oct 2019 13:29:56 +0000 (09:29 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 17 Oct 2019 14:20:00 +0000 (14:20 +0000)
commit6cbf37b30b852164b1cd098e0369498ca72ede09
treef92cb7c24f46f7eab9065e2cd456e1d76e975f73
parent8011051361d85ca0c062f7226e80afbad21341c8
[dev.link] cmd/link: record go.itablink symbols during object file read

Change the new loader to keep a note of the set of "go.itablink.*"
symbols (using a small map), and add a method that clients can use to
query whether a given global index corresponds to a "go.itablink.*"
sym. This eliminates one instance of raw symbol name reading/matching
during new deadcode, which should produce a minor speedup.

Change-Id: I5915773a3f33c16099ccd68592dbba783d909bc9
Reviewed-on: https://go-review.googlesource.com/c/go/+/201400
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
src/cmd/link/internal/loader/loader.go