]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: delete CompilationUnit.Pkg field
authorCherry Zhang <cherryyz@google.com>
Fri, 2 Apr 2021 00:08:32 +0000 (20:08 -0400)
committerCherry Zhang <cherryyz@google.com>
Fri, 2 Apr 2021 14:40:43 +0000 (14:40 +0000)
It is never used. It is actually CompilationUnit.Lib.Pkg that
contains the package path.

Change-Id: I18189644ea080080868d144e81dfee02f4549133
Reviewed-on: https://go-review.googlesource.com/c/go/+/306710
Trust: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/sym/compilation_unit.go

index 926cbc3d20e8972bc9d12931bdb98ae64d7c0a71..3bad5bf3f4fb1b0ed648cfb42638d71ae701c6e0 100644 (file)
@@ -20,7 +20,6 @@ type LoaderSym int
 //
 // These are used for both DWARF and pclntab generation.
 type CompilationUnit struct {
-       Pkg       string        // The package name, eg ("fmt", or "runtime")
        Lib       *Library      // Our library
        PclnIndex int           // Index of this CU in pclntab
        PCs       []dwarf.Range // PC ranges, relative to Textp[0]