go/src/cmd/compile/internal/x86
Josh Bleecher Snyder c311488283 cmd/internal/obj: remove Linklookup
It was simply a wrapper around Link.Lookup.
Unwrap everything.

CL prepared using eg with template:

package p

import "cmd/internal/obj"

func before(ctxt *obj.Link, name string, version int) *obj.LSym {
	return obj.Linklookup(ctxt, name, version)
}

func after(ctxt *obj.Link, name string, version int) *obj.LSym {
	return ctxt.Lookup(name, version)
}

Then one comment in cmd/asm/internal/asm/parse.go
was manually updated (and gofmt'ed!),
and func Linklookup deleted.

Passes toolstash-check (as a sanity measure).

Change-Id: Icc4d56b0b2b5c8888d3184c1898c48359ea1e638
Reviewed-on: https://go-review.googlesource.com/39715
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2017-04-06 19:01:41 +00:00
..
387.go cmd/compile: funnel SSA Prog creation through SSAGenState 2017-03-22 17:18:40 +00:00
galign.go cmd/internal/obj: eagerly initialize x86 assembler 2017-03-25 23:20:25 +00:00
ggen.go cmd/compile: eliminate Prog-related globals 2017-03-23 16:52:28 +00:00
ssa.go cmd/internal/obj: remove Linklookup 2017-04-06 19:01:41 +00:00