1
0
mirror of https://github.com/golang/go synced 2024-11-14 08:40:27 -07:00
go/src/cmd/link
Michael Hudson-Doyle 324f6ab48c cmd/link: use ctxt.{Lookup,ROLookup} in favour of function versions of same
Done with two eg templates:

package p

import (
	"cmd/link/internal/ld"
)

func before(ctxt *ld.Link, name string, v int) *ld.Symbol {
	return ld.Linklookup(ctxt, name, v)
}
func after(ctxt *ld.Link, name string, v int) *ld.Symbol {
	return ctxt.Syms.Lookup(name, v)
}

package p

import (
	"cmd/link/internal/ld"
)

func before(ctxt *ld.Link, name string, v int) *ld.Symbol {
	return ld.Linkrlookup(ctxt, name, v)
}
func after(ctxt *ld.Link, name string, v int) *ld.Symbol {
	return ctxt.Syms.ROLookup(name, v)
}

Change-Id: I00647dbf62294557bd24c29ad1f108fc786335f1
Reviewed-on: https://go-review.googlesource.com/29343
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-09-20 04:12:43 +00:00
..
internal cmd/link: use ctxt.{Lookup,ROLookup} in favour of function versions of same 2016-09-20 04:12:43 +00:00
doc.go cmd/link: add -extar option to set ar program for c-archive 2016-01-26 18:52:36 +00:00
link_test.go cmd/link: handle long symbol names 2016-04-13 20:31:43 +00:00
main.go cmd/link: skip arch-specific main function 2016-09-16 20:38:38 +00:00