aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-08-02 19:36:28 -0400
committerCherry Zhang <cherryyz@google.com>2020-08-11 18:32:23 +0000
commit27e3778793c4ae4e54d27185f6955bc5c180151b (patch)
tree3dc501029a93af24d68a7eb42ce15d26720c91a5 /src/cmd/link/internal/ld/deadcode.go
parent9559877543976f8e7b15ae02a7196c4f930fc371 (diff)
downloadgo-27e3778793c4ae4e54d27185f6955bc5c180151b.tar.gz
go-27e3778793c4ae4e54d27185f6955bc5c180151b.zip
[dev.link] cmd: remove "2", another round
Rename the goobj2 package to goobj. Change-Id: Iff97b5575cbac45ac44de96b6bd9d555b9a4a12a Reviewed-on: https://go-review.googlesource.com/c/go/+/246444 Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> 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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go
index a169772dde..0269429723 100644
--- a/src/cmd/link/internal/ld/deadcode.go
+++ b/src/cmd/link/internal/ld/deadcode.go
@@ -5,7 +5,7 @@
package ld
import (
- "cmd/internal/goobj2"
+ "cmd/internal/goobj"
"cmd/internal/objabi"
"cmd/internal/sys"
"cmd/link/internal/loader"
@@ -161,7 +161,7 @@ func (d *deadcodePass) flood() {
naux := d.ldr.NAux(symIdx)
for i := 0; i < naux; i++ {
a := d.ldr.Aux(symIdx, i)
- if a.Type() == goobj2.AuxGotype && !d.ctxt.linkShared {
+ if a.Type() == goobj.AuxGotype && !d.ctxt.linkShared {
// A symbol being reachable doesn't imply we need its
// type descriptor. Don't mark it.
// TODO: when -linkshared, the GCProg generation code