]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: relocating Errorf() to ErrorReporter
authorThan McIntosh <thanm@google.com>
Thu, 19 Mar 2020 12:17:54 +0000 (08:17 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 25 Mar 2020 12:22:46 +0000 (12:22 +0000)
commit242b38c1716066d6489b00007885302c1e42fb75
treeae5fedc6e5f9dbb2acd5c9144e180dc8e1b556f6
parentea93ddfaeb2a797717ae6230d1166d842bc44655
[dev.link] cmd/link: relocating Errorf() to ErrorReporter

Add an Errorf method to ErrorReporter. The hope is that we can
consolidate error handling/reporting in this helper, and eventually
do away with Link.Errorf and the global Errorf function (which
can be removed once we've eliminated enough uses of *sym.Symbol).

Change-Id: Ie1147020b8409b9c57acfd71c942b287b214afca
Reviewed-on: https://go-review.googlesource.com/c/go/+/224380
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/errors.go
src/cmd/link/internal/ld/lib.go