diff options
| author | David Lazar <lazard@golang.org> | 2016-12-09 12:34:01 -0500 |
|---|---|---|
| committer | David Lazar <lazard@golang.org> | 2016-12-09 20:25:10 +0000 |
| commit | ad4efedc6ce317aa9eb1208950daee4c31b023cc (patch) | |
| tree | 3ee14f959718fbb0b6a4fc5f79d9c6421db217fb /src/cmd/internal/obj/util.go | |
| parent | 4b8895e2ddb8b9aa324417a0d01e6c09c9822e75 (diff) | |
| download | go-ad4efedc6ce317aa9eb1208950daee4c31b023cc.tar.xz | |
[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>
Diffstat (limited to 'src/cmd/internal/obj/util.go')
| -rw-r--r-- | src/cmd/internal/obj/util.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/util.go b/src/cmd/internal/obj/util.go index bc5d1c5d5a..472e13bc44 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)) + return p.Ctxt.LineHist.LineString(int(p.Lineno.Line())) } var armCondCode = []string{ |
