]> Cypherpunks repositories - gostls13.git/commit
cmd/asm/internal/arch: consolidate LinkArch handling
authorJoel Sing <joel@sing.id.au>
Fri, 6 Sep 2019 18:40:38 +0000 (04:40 +1000)
committerJoel Sing <joel@sing.id.au>
Sat, 7 Sep 2019 09:43:04 +0000 (09:43 +0000)
commit112a72a020f8976876ea7644f9220dbfb0f85464
tree4e1f3955505fb5f75002781ca72ebf86e7f7997f
parent3a067f71e9737fc8ae1e49348155d92d52e66718
cmd/asm/internal/arch: consolidate LinkArch handling

Rather than manually setting the LinkArch for each case, pass the correct
*obj.LinkArch to the arch* function, as is already done for archX86().

Change-Id: I4cf950780aa30a1385e785fb1d26edacb99bda79
Reviewed-on: https://go-review.googlesource.com/c/go/+/193818
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/arch/arch.go