From c311488283fc9d9ad22e20a9b6551681af8586ef Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Thu, 6 Apr 2017 09:54:14 -0700 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- src/cmd/compile/internal/ssa/export_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd/compile/internal/ssa/export_test.go') diff --git a/src/cmd/compile/internal/ssa/export_test.go b/src/cmd/compile/internal/ssa/export_test.go index f7a80a8c00..1b18d74575 100644 --- a/src/cmd/compile/internal/ssa/export_test.go +++ b/src/cmd/compile/internal/ssa/export_test.go @@ -114,7 +114,7 @@ func (DummyFrontend) Line(_ src.XPos) string { func (DummyFrontend) AllocFrame(f *Func) { } func (d DummyFrontend) Syslook(s string) *obj.LSym { - return obj.Linklookup(d.ctxt, s, 0) + return d.ctxt.Lookup(s, 0) } func (DummyFrontend) UseWriteBarrier() bool { return true // only writebarrier_test cares -- cgit v1.2.3-54-g00ecf