Commit f30de83d authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

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: default avatarCherry Zhang <cherryyz@google.com>
parent 9191c0b3
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment