mirror of
https://github.com/golang/go
synced 2024-11-23 16:00:06 -07:00
cmd/internal/obj: remove Link.Version
It is zeroed pointlessly and never read. Change-Id: I65390501a878f545122ec558cb621b91e394a538 Reviewed-on: https://go-review.googlesource.com/40406 Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
9191c0b3fd
commit
f30de83d79
@ -728,7 +728,6 @@ type Link struct {
|
||||
Plan9privates *LSym
|
||||
DiagFunc func(string, ...interface{})
|
||||
DebugInfo func(fn *LSym, curfn interface{}) []*dwarf.Var // if non-nil, curfn is a *gc.Node
|
||||
Version int
|
||||
Errors int
|
||||
|
||||
Framepointer_enabled bool
|
||||
|
@ -55,7 +55,6 @@ func Linknew(arch *LinkArch) *Link {
|
||||
ctxt := new(Link)
|
||||
ctxt.Hash = make(map[SymVer]*LSym)
|
||||
ctxt.Arch = arch
|
||||
ctxt.Version = 0
|
||||
ctxt.Pathname = WorkingDir()
|
||||
|
||||
ctxt.Headtype.Set(GOOS)
|
||||
|
Loading…
Reference in New Issue
Block a user