mirror of
https://github.com/golang/go
synced 2024-11-26 08:38:01 -07:00
[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:
parent
6d89c90fb1
commit
5c028751bd
@ -186,7 +186,10 @@ of the run-time system.
|
|||||||
*/
|
*/
|
||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
import "runtime/internal/sys"
|
import (
|
||||||
|
"internal/goarch"
|
||||||
|
"runtime/internal/sys"
|
||||||
|
)
|
||||||
|
|
||||||
// Caller reports file and line number information about function invocations on
|
// 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
|
// 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:
|
// GOARCH is the running program's architecture target:
|
||||||
// one of 386, amd64, arm, s390x, and so on.
|
// one of 386, amd64, arm, s390x, and so on.
|
||||||
const GOARCH string = sys.GOARCH
|
const GOARCH string = goarch.GOARCH
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
package runtime
|
package runtime
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"runtime/internal/sys"
|
|
||||||
"internal/goarch"
|
"internal/goarch"
|
||||||
"unsafe"
|
"unsafe"
|
||||||
)
|
)
|
||||||
@ -532,7 +531,7 @@ func dumpparams() {
|
|||||||
}
|
}
|
||||||
dumpint(uint64(arenaStart))
|
dumpint(uint64(arenaStart))
|
||||||
dumpint(uint64(arenaEnd))
|
dumpint(uint64(arenaEnd))
|
||||||
dumpstr(sys.GOARCH)
|
dumpstr(goarch.GOARCH)
|
||||||
dumpstr(buildVersion)
|
dumpstr(buildVersion)
|
||||||
dumpint(uint64(ncpu))
|
dumpint(uint64(ncpu))
|
||||||
}
|
}
|
||||||
|
@ -54,8 +54,6 @@ const MinFrameSize = goarch.MinFrameSize
|
|||||||
// The stack must be at least word aligned, but some architectures require more.
|
// The stack must be at least word aligned, but some architectures require more.
|
||||||
const StackAlign = goarch.StackAlign
|
const StackAlign = goarch.StackAlign
|
||||||
|
|
||||||
const GOARCH = goarch.GOARCH
|
|
||||||
|
|
||||||
const (
|
const (
|
||||||
Goarch386 = goarch.Goarch386
|
Goarch386 = goarch.Goarch386
|
||||||
GoarchAmd64 = goarch.GoarchAmd64
|
GoarchAmd64 = goarch.GoarchAmd64
|
||||||
|
Loading…
Reference in New Issue
Block a user