]> Cypherpunks repositories - gostls13.git/commit
cmd/link/internal/loadmacho: reduce scope of local declarations
authorMarvin Stenger <marvin.stenger94@gmail.com>
Fri, 6 Oct 2017 16:04:10 +0000 (18:04 +0200)
committerDavid Crawshaw <crawshaw@golang.org>
Sat, 7 Oct 2017 13:35:26 +0000 (13:35 +0000)
commitda4d740fc84bfbbfe24956725f864fecdc89002d
treeb428c0b6d6ac01d8bdd3d59e1f29fafeee661f43
parenteab5bc9a46df5306dab7fe40ad21a7f9b65ecdc8
cmd/link/internal/loadmacho: reduce scope of local declarations

Move some local declarations closer to their use, reducing their
respective lifetimes, also improve few error messages.
Follow up of CL 67370.

Updates #22095

Change-Id: I6131159ae8de571015ef5459b33d5c186e543a37
Reviewed-on: https://go-review.googlesource.com/69110
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/link/internal/loadmacho/ldmacho.go