]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: implement live method tracking in deadcode2
authorCherry Zhang <cherryyz@google.com>
Fri, 4 Oct 2019 19:08:58 +0000 (15:08 -0400)
committerCherry Zhang <cherryyz@google.com>
Mon, 14 Oct 2019 14:29:03 +0000 (14:29 +0000)
commit7d6f79e61783a5ee86e39e47f2d85b3e21552c97
treebde29a71cc2de176c8b74f0adf7f9d8e0ed284ab
parentcc21e4d1306e080427ff4e62e735c9401a738d98
[dev.link] cmd/link: implement live method tracking in deadcode2

This essentially replicates the logic of live method tracking and
type symbol decoding, rewritten to operate on indices instead of
Symbols.

TODO: the special handling of reflect.Type.Method has not been
implemented.

TODO: the symbol name is used too much. It ought to be a better
way to do it.

Change-Id: I860ee7a506c00833902e4870d15aea698a705dd9
Reviewed-on: https://go-review.googlesource.com/c/go/+/199078
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/deadcode2.go
src/cmd/link/internal/objfile/objfile2.go