mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
82e1651a24
commit
1467776b17
10 changed files with 44 additions and 76 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue