[dev.inline] cmd/internal/obj: use src.Pos in obj.Prog

This will let us use the src.Pos struct to thread inlining
information through to obj.

Change-Id: I96a16d3531167396988df66ae70f0b729049cc82
Reviewed-on: https://go-review.googlesource.com/34195
Run-TryBot: David Lazar <lazard@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
This commit is contained in:
David Lazar 2016-12-09 12:34:01 -05:00
parent 4b8895e2dd
commit ad4efedc6c
6 changed files with 14 additions and 13 deletions

View file

@ -59,7 +59,7 @@ func Getgoextlinkenabled() string {
}
func (p *Prog) Line() string {
return p.Ctxt.LineHist.LineString(int(p.Lineno))
return p.Ctxt.LineHist.LineString(int(p.Lineno.Line()))
}
var armCondCode = []string{