cmd/internal/obj: update callers to Linkline{fmt,hist} and remove

Does the TODOs added by https://golang.org/cl/7623.

Passes rsc.io/toolstash/buildall.

Change-Id: I23913a8f03834640e9795d48318febb3f88c10f9
Reviewed-on: https://go-review.googlesource.com/9160
Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
Matthew Dempsky 2015-04-20 13:32:40 -07:00
parent 82e1651a24
commit 1467776b17
10 changed files with 44 additions and 76 deletions

View file

@ -241,7 +241,7 @@ func Atoi(s string) int {
}
func (p *Prog) Line() string {
return Linklinefmt(p.Ctxt, int(p.Lineno), false, false)
return p.Ctxt.LineHist.LineString(int(p.Lineno))
}
var armCondCode = []string{
@ -340,7 +340,7 @@ func (ctxt *Link) NewProg() *Prog {
}
func (ctxt *Link) Line(n int) string {
return Linklinefmt(ctxt, n, false, false)
return ctxt.LineHist.LineString(n)
}
func Getcallerpc(interface{}) uintptr {