Move runtime.TargetBits out of the compiler

This commit is contained in:
Ayke van Laethem
2018-09-02 16:00:31 +02:00
parent 9fca0e99b5
commit 42cddd3260
4 changed files with 10 additions and 21 deletions
+3
View File
@@ -6,3 +6,6 @@ const GOARCH = "amd64"
// The length type used inside strings and slices.
type lenType uint32
// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 64
+3
View File
@@ -6,3 +6,6 @@ const GOARCH = "wasm"
// The length type used inside strings and slices.
type lenType uint32
// The bitness of the CPU (e.g. 8, 32, 64).
const TargetBits = 32
-3
View File
@@ -6,9 +6,6 @@ import (
const Compiler = "tgo"
// The bitness of the CPU (e.g. 8, 32, 64). Set by the compiler as a constant.
var TargetBits uint8
func Sleep(d Duration) {
// This function is treated specially by the compiler: when goroutines are
// used, it is transformed into a llvm.coro.suspend() call.