]> Cypherpunks repositories - gostls13.git/commit
cmd/link: code cleanup in macho_combine_dwarf.go
authorTamir Duberstein <tamird@google.com>
Fri, 7 Feb 2020 20:27:55 +0000 (20:27 +0000)
committerThan McIntosh <thanm@google.com>
Mon, 24 Feb 2020 13:25:13 +0000 (13:25 +0000)
commit531b6d3126bb810dcdfcce14983cea32236c322d
treed3d5749952f3d81736b2ed0f49e215043a8b2e6f
parent218f4572f5d5832c81e13d71690791aea67dacd2
cmd/link: code cleanup in macho_combine_dwarf.go

- remove global variables
- add missing error checks
- add missing (*os.File).Close calls
- null-check text section correctly
- reduce some variable scopes
- use bytes.Buffer instead of appended slice
- reduce integer casting

Change-Id: Ib9ad41adefed4d61047f53e27046389182eef786
Reviewed-on: https://go-review.googlesource.com/c/go/+/218501
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/macho_combine_dwarf.go