]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/ld: remove C style gotos from ldelf
authorDave Cheney <dave@cheney.net>
Thu, 20 Apr 2017 00:45:01 +0000 (10:45 +1000)
committerDave Cheney <dave@cheney.net>
Thu, 20 Apr 2017 01:37:08 +0000 (01:37 +0000)
commitd728be70f470b3e3f0e47bb03da505fbaee0ec97
tree4f91307a59c853d60fcfe113e97063eb3dd6f683
parent1db0aae37029339515678ef4682238c2707866ae
cmd/link/internal/ld: remove C style gotos from ldelf

ld.ldelf contained a mixture of normal and C style, goto bad, error
handling. The use of goto requires many variables to be declared well
before their use which inhibited further refactoring to this method.

This CL removes the gotos in this function. Future CLs will address
remainder of the C style function scoped declarations in this function.

Change-Id: Ib9def495209a2f8deb11dcf30ee954bca95390c6
Reviewed-on: https://go-review.googlesource.com/41172
Run-TryBot: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/ldelf.go