]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/ld: replace Diag;Errorexit with Exitf
authorDavid Crawshaw <crawshaw@golang.org>
Thu, 9 Apr 2015 11:37:17 +0000 (07:37 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 17 Apr 2015 22:50:25 +0000 (22:50 +0000)
commit7816a096d904aeab9ab850d1b035fdac6cced1c7
tree1b06f722e95e1d16029cd351e111c8a0b5c28317
parentc5befcf0a76b930d525eaf1b09405bd058711012
cmd/internal/ld: replace Diag;Errorexit with Exitf

I have left the Diag calls in place where I believe Ctxt.Cursym != nil
which means this CL is not the improvement I had hoped for. However
it is now safe to call Exitf whereever you are in the linker, which
makes it easier to reason about some code.

Change-Id: I8261e761ca9719f7d216e2747314adfe464e3337
Reviewed-on: https://go-review.googlesource.com/8668
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
19 files changed:
src/cmd/5l/asm.go
src/cmd/5l/obj.go
src/cmd/6l/obj.go
src/cmd/7l/obj.go
src/cmd/8l/obj.go
src/cmd/9l/obj.go
src/cmd/internal/ld/data.go
src/cmd/internal/ld/decodesym.go
src/cmd/internal/ld/dwarf.go
src/cmd/internal/ld/elf.go
src/cmd/internal/ld/go.go
src/cmd/internal/ld/ldelf.go
src/cmd/internal/ld/ldmacho.go
src/cmd/internal/ld/ldpe.go
src/cmd/internal/ld/lib.go
src/cmd/internal/ld/macho.go
src/cmd/internal/ld/pcln.go
src/cmd/internal/ld/pe.go
src/cmd/internal/ld/pobj.go