]> Cypherpunks repositories - gostls13.git/commit
runtime: don't use linkname to refer to internal/cpu
authorIan Lance Taylor <iant@golang.org>
Thu, 9 Aug 2018 00:26:23 +0000 (17:26 -0700)
committerIan Lance Taylor <iant@golang.org>
Tue, 21 Aug 2018 14:36:09 +0000 (14:36 +0000)
commitcd7cb86d8e56d28bfe9bd522baa44c95127028d7
treed22fd63b44b0843dca3ab432621a416d56339103
parent4e1b11e2c9bdb0ddea1141eed487be1a626ff5be
runtime: don't use linkname to refer to internal/cpu

The runtime package already imports the internal/cpu package, so there
is no reason for it to use go:linkname comments to refer to
internal/cpu functions and variables. Since internal/cpu is internal,
we can just export those names. Removing the obscurity of go:linkname
outweighs the minor additional complexity added to the internal/cpu API.

Change-Id: Id89951b7f3fc67cd9bce67ac6d01d44a647a10ad
Reviewed-on: https://go-review.googlesource.com/128755
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Martin Möhrmann <moehrmann@google.com>
src/internal/cpu/cpu.go
src/internal/cpu/cpu_arm64.go
src/internal/cpu/cpu_ppc64x.go
src/internal/cpu/export_test.go
src/runtime/os_linux_arm64.go
src/runtime/os_linux_ppc64x.go
src/runtime/proc.go