From 3651eff74efcd80519372d58eb06a0fe3f3f2808 Mon Sep 17 00:00:00 2001 From: Cherry Zhang Date: Thu, 1 Apr 2021 20:08:32 -0400 Subject: [PATCH] cmd/link: delete CompilationUnit.Pkg field 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 Run-TryBot: Cherry Zhang TryBot-Result: Go Bot Reviewed-by: Than McIntosh --- src/cmd/link/internal/sym/compilation_unit.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cmd/link/internal/sym/compilation_unit.go b/src/cmd/link/internal/sym/compilation_unit.go index 926cbc3d20..3bad5bf3f4 100644 --- a/src/cmd/link/internal/sym/compilation_unit.go +++ b/src/cmd/link/internal/sym/compilation_unit.go @@ -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] -- 2.50.0