]> Cypherpunks repositories - gostls13.git/commit
cmd/link: rewrite some code without using reflection
authorCherry Zhang <cherryyz@google.com>
Fri, 4 Sep 2020 17:01:08 +0000 (13:01 -0400)
committerCherry Zhang <cherryyz@google.com>
Tue, 8 Sep 2020 17:01:02 +0000 (17:01 +0000)
commitae3680b30b81162da3ae0ea248eea502e8ca2195
tree7a187b5ceb60d2aeb7b877fa9d030c76c2f67124
parente8f918535e6c9fc7b85a9dadc9e8035a2e1d1fa4
cmd/link: rewrite some code without using reflection

In Mach-O DWARF combining, some code was written using reflection,
so it could support both 32-bit and 64-bit Mach-O files without
duplicating code. We no longer support 32-bit darwin platforms
now. 32-bit support can go. Rewrite it with direct field access,
for 64-bit only.

Change-Id: If1338c3cd37cecf603f4df0c6eb0c890eaebfe5f
Reviewed-on: https://go-review.googlesource.com/c/go/+/253557
Run-TryBot: Cherry Zhang <cherryyz@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