aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/util.go
diff options
context:
space:
mode:
authorDavid Lazar <lazard@golang.org>2016-12-09 14:30:40 -0500
committerDavid Lazar <lazard@golang.org>2016-12-09 20:35:56 +0000
commit48d029fe431f2c19e0ccc62a33de059c7725ee93 (patch)
tree408921b66026a58873c76c90d90093ff4a7fad42 /src/cmd/internal/obj/util.go
parentad4efedc6ce317aa9eb1208950daee4c31b023cc (diff)
downloadgo-48d029fe431f2c19e0ccc62a33de059c7725ee93.tar.xz
[dev.inline] cmd/internal/obj: rename Prog.Lineno to Prog.Pos
Change-Id: I7585d85907869f5a286b36936dfd035f1e8e9906 Reviewed-on: https://go-review.googlesource.com/34197 Run-TryBot: David Lazar <lazard@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/internal/obj/util.go')
-rw-r--r--src/cmd/internal/obj/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/util.go b/src/cmd/internal/obj/util.go
index 472e13bc44..ccf4f4b5f6 100644
--- a/src/cmd/internal/obj/util.go
+++ b/src/cmd/internal/obj/util.go
@@ -59,7 +59,7 @@ func Getgoextlinkenabled() string {
}
func (p *Prog) Line() string {
- return p.Ctxt.LineHist.LineString(int(p.Lineno.Line()))
+ return p.Ctxt.LineHist.LineString(int(p.Pos.Line()))
}
var armCondCode = []string{