[dev.typeparams] runtime/internal/sys: replace uses of GOARCH with goarch.GOARCH

Refactoring performed by the rf tool:

    rf 'ex . {
	import "internal/goarch"
	import "runtime/internal/sys"
	sys.GOARCH -> goarch.GOARCH
    }'

Change-Id: I4b0246bf4e734f08313c6fff7b547db362057714
Reviewed-on: https://go-review.googlesource.com/c/go/+/328338
Trust: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
Michael Anthony Knyszek 2021-06-16 21:11:32 +00:00 committed by Michael Knyszek
parent 6d89c90fb1
commit 5c028751bd
3 changed files with 6 additions and 6 deletions

View file

@ -186,7 +186,10 @@ of the run-time system.
*/
package runtime
import "runtime/internal/sys"
import (
"internal/goarch"
"runtime/internal/sys"
)
// Caller reports file and line number information about function invocations on
// the calling goroutine's stack. The argument skip is the number of stack frames
@ -264,4 +267,4 @@ const GOOS string = sys.GOOS
// GOARCH is the running program's architecture target:
// one of 386, amd64, arm, s390x, and so on.
const GOARCH string = sys.GOARCH
const GOARCH string = goarch.GOARCH

View file

@ -12,7 +12,6 @@
package runtime
import (
"runtime/internal/sys"
"internal/goarch"
"unsafe"
)
@ -532,7 +531,7 @@ func dumpparams() {
}
dumpint(uint64(arenaStart))
dumpint(uint64(arenaEnd))
dumpstr(sys.GOARCH)
dumpstr(goarch.GOARCH)
dumpstr(buildVersion)
dumpint(uint64(ncpu))
}

View file

@ -54,8 +54,6 @@ const MinFrameSize = goarch.MinFrameSize
// The stack must be at least word aligned, but some architectures require more.
const StackAlign = goarch.StackAlign
const GOARCH = goarch.GOARCH
const (
Goarch386 = goarch.Goarch386
GoarchAmd64 = goarch.GoarchAmd64