Commit 3b87defe authored by Josh Bleecher Snyder's avatar Josh Bleecher Snyder

cmd/compile: unexport gc.Sysfunc

Updates #21352

Change-Id: If21342f30be32e25840b4072b932a6d4257b420d
Reviewed-on: https://go-review.googlesource.com/54091
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarAvelino <t@avelino.xxx>
Reviewed-by: default avatarMatthew Dempsky <mdempsky@google.com>
parent a6ae01a6
...@@ -11,7 +11,7 @@ import ( ...@@ -11,7 +11,7 @@ import (
"strconv" "strconv"
) )
func Sysfunc(name string) *obj.LSym { func sysfunc(name string) *obj.LSym {
return Runtimepkg.Lookup(name).Linksym() return Runtimepkg.Lookup(name).Linksym()
} }
......
...@@ -788,7 +788,7 @@ func dcommontype(lsym *obj.LSym, ot int, t *types.Type) int { ...@@ -788,7 +788,7 @@ func dcommontype(lsym *obj.LSym, ot int, t *types.Type) int {
sizeofAlg := 2 * Widthptr sizeofAlg := 2 * Widthptr
if algarray == nil { if algarray == nil {
algarray = Sysfunc("algarray") algarray = sysfunc("algarray")
} }
dowidth(t) dowidth(t)
alg := algtype(t) alg := algtype(t)
...@@ -1586,8 +1586,8 @@ func dalgsym(t *types.Type) *obj.LSym { ...@@ -1586,8 +1586,8 @@ func dalgsym(t *types.Type) *obj.LSym {
s.SetAlgGen(true) s.SetAlgGen(true)
if memhashvarlen == nil { if memhashvarlen == nil {
memhashvarlen = Sysfunc("memhash_varlen") memhashvarlen = sysfunc("memhash_varlen")
memequalvarlen = Sysfunc("memequal_varlen") memequalvarlen = sysfunc("memequal_varlen")
} }
// make hash closure // make hash closure
......
...@@ -70,32 +70,32 @@ func initssaconfig() { ...@@ -70,32 +70,32 @@ func initssaconfig() {
ssaCaches = make([]ssa.Cache, nBackendWorkers) ssaCaches = make([]ssa.Cache, nBackendWorkers)
// Set up some runtime functions we'll need to call. // Set up some runtime functions we'll need to call.
Newproc = Sysfunc("newproc") Newproc = sysfunc("newproc")
Deferproc = Sysfunc("deferproc") Deferproc = sysfunc("deferproc")
Deferreturn = Sysfunc("deferreturn") Deferreturn = sysfunc("deferreturn")
Duffcopy = Sysfunc("duffcopy") Duffcopy = sysfunc("duffcopy")
Duffzero = Sysfunc("duffzero") Duffzero = sysfunc("duffzero")
panicindex = Sysfunc("panicindex") panicindex = sysfunc("panicindex")
panicslice = Sysfunc("panicslice") panicslice = sysfunc("panicslice")
panicdivide = Sysfunc("panicdivide") panicdivide = sysfunc("panicdivide")
growslice = Sysfunc("growslice") growslice = sysfunc("growslice")
panicdottypeE = Sysfunc("panicdottypeE") panicdottypeE = sysfunc("panicdottypeE")
panicdottypeI = Sysfunc("panicdottypeI") panicdottypeI = sysfunc("panicdottypeI")
panicnildottype = Sysfunc("panicnildottype") panicnildottype = sysfunc("panicnildottype")
assertE2I = Sysfunc("assertE2I") assertE2I = sysfunc("assertE2I")
assertE2I2 = Sysfunc("assertE2I2") assertE2I2 = sysfunc("assertE2I2")
assertI2I = Sysfunc("assertI2I") assertI2I = sysfunc("assertI2I")
assertI2I2 = Sysfunc("assertI2I2") assertI2I2 = sysfunc("assertI2I2")
goschedguarded = Sysfunc("goschedguarded") goschedguarded = sysfunc("goschedguarded")
writeBarrier = Sysfunc("writeBarrier") writeBarrier = sysfunc("writeBarrier")
writebarrierptr = Sysfunc("writebarrierptr") writebarrierptr = sysfunc("writebarrierptr")
typedmemmove = Sysfunc("typedmemmove") typedmemmove = sysfunc("typedmemmove")
typedmemclr = Sysfunc("typedmemclr") typedmemclr = sysfunc("typedmemclr")
Udiv = Sysfunc("udiv") Udiv = sysfunc("udiv")
// GO386=387 runtime functions // GO386=387 runtime functions
ControlWord64trunc = Sysfunc("controlWord64trunc") ControlWord64trunc = sysfunc("controlWord64trunc")
ControlWord32 = Sysfunc("controlWord32") ControlWord32 = sysfunc("controlWord32")
} }
// buildssa builds an SSA function for fn. // buildssa builds an SSA function for fn.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment