aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2019-10-03 18:25:21 -0400
committerCherry Zhang <cherryyz@google.com>2019-10-09 21:05:54 +0000
commitc455e8878f67eeeb02537cc7b3c5fc18a22a2ed7 (patch)
treef6f0aa6dec8070b6ce4954347b2f83f2a4cb212c /src/cmd/link/internal/ld/deadcode.go
parent65a649c565d06c14ae8e3a5042c4dec7f70af612 (diff)
downloadgo-c455e8878f67eeeb02537cc7b3c5fc18a22a2ed7.tar.xz
[dev.link] cmd/link: change some decodetype functions to operate on bytes
Change some decodetype functions to operate on bytes nstead of Symbol. This is in preparation of implementing live method tracking in index-based deadcode pass, and reducing/eliminating sym.Symbol in general. Change-Id: Ia9809ad7b182884225e1bda577e8dbec0cd216c5 Reviewed-on: https://go-review.googlesource.com/c/go/+/199077 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
-rw-r--r--src/cmd/link/internal/ld/deadcode.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go
index 575fabc259..a024e40dff 100644
--- a/src/cmd/link/internal/ld/deadcode.go
+++ b/src/cmd/link/internal/ld/deadcode.go
@@ -322,7 +322,7 @@ func (d *deadcodepass) flood() {
// later will give a better error than deadcode.
continue
}
- if decodetypeKind(d.ctxt.Arch, s)&kindMask == kindInterface {
+ if decodetypeKind(d.ctxt.Arch, s.P)&kindMask == kindInterface {
for _, sig := range decodeIfaceMethods(d.ctxt.Arch, s) {
if d.ctxt.Debugvlog > 1 {
d.ctxt.Logf("reached iface method: %s\n", sig)