]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: cleanup linkgetlineFromPos
authorMichael Pratt <mpratt@google.com>
Fri, 28 Oct 2022 19:15:25 +0000 (15:15 -0400)
committerMichael Pratt <mpratt@google.com>
Mon, 31 Oct 2022 20:45:15 +0000 (20:45 +0000)
commit76940b3e5749a9936cbc32631e068065c2003267
treefbb46cf8d6fac95356da088e1a0dd871a269431b
parent1999f256e4d478251290dfa007c62364810b7bf7
cmd/internal/obj: cleanup linkgetlineFromPos

Make linkgetlineFromPos and getFileIndexAndLine methods on Link, and
give the former a more descriptive name.

The docs are expanded to make it more clear that these are final
file/line visible in programs.

In getFileSymbolAndLine use ctxt.InnermostPos instead of ctxt.PosTable
direct, which makes it more clear that we want the semantics of
InnermostPos.

Change-Id: I7c3d344dec60407fa54b191be8a09c117cb87dd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/446301
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/internal/obj/dwarf.go
src/cmd/internal/obj/line.go
src/cmd/internal/obj/line_test.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/pcln.go
src/cmd/internal/obj/plist.go
src/cmd/internal/obj/sym.go