]> Cypherpunks repositories - gostls13.git/commit
cmd/link: clean up dwarf.go
authorDidier Spezia <didier.06@gmail.com>
Sat, 10 Oct 2015 10:57:35 +0000 (10:57 +0000)
committerRuss Cox <rsc@golang.org>
Sat, 5 Dec 2015 04:13:18 +0000 (04:13 +0000)
commit77328b8d120eb12af035b01fc1ef41a9b68f2cb0
tree7b0399f4bfa7d4ac73ba6fa8ad8017781366b40b
parent08ab43eca244e7bec0228c17d93a7cde17b20f7f
cmd/link: clean up dwarf.go

Try to remove the most visible artefacts resulting from the
C to Go translation. It includes:

- refactoring the find function to eliminate goto and variable declarations
- removing useless variables still having a _ = xxx
- decreasing the number of upfront variable declarations

No semantic changes.

Change-Id: I84d981c48b2d9e22e6b9db5f2a703c80c60249ba
Reviewed-on: https://go-review.googlesource.com/15681
Reviewed-by: Russ Cox <rsc@golang.org>
src/cmd/link/internal/ld/dwarf.go