]> Cypherpunks repositories - gostls13.git/commit
cmd/link: code cleanup in macho_combine_dwarf.go
authorTamir Duberstein <tamird@google.com>
Tue, 14 Jan 2020 15:43:55 +0000 (10:43 -0500)
committerThan McIntosh <thanm@google.com>
Fri, 7 Feb 2020 15:14:06 +0000 (15:14 +0000)
commit494dd1dddceb2df533feddd483b7cb05310f1085
tree76eeb68d9cc3d9906fe4e48f7187cf177ee7aa41
parentab7c174183b05e36dabe0aa1943a0a4302b940d0
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: I4f6899923d0b26627308beb5c5c3ee9e6c68c41d
Reviewed-on: https://go-review.googlesource.com/c/go/+/214657
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/link/internal/ld/macho_combine_dwarf.go