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: 's avatarAvelino <t@avelino.xxx>
Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
parent a6ae01a6
......@@ -11,7 +11,7 @@ import (
"strconv"
)
func Sysfunc(name string) *obj.LSym {
func sysfunc(name string) *obj.LSym {
return Runtimepkg.Lookup(name).Linksym()
}
......
......@@ -788,7 +788,7 @@ func dcommontype(lsym *obj.LSym, ot int, t *types.Type) int {
sizeofAlg := 2 * Widthptr
if algarray == nil {
algarray = Sysfunc("algarray")
algarray = sysfunc("algarray")
}
dowidth(t)
alg := algtype(t)
......@@ -1586,8 +1586,8 @@ func dalgsym(t *types.Type) *obj.LSym {
s.SetAlgGen(true)
if memhashvarlen == nil {
memhashvarlen = Sysfunc("memhash_varlen")
memequalvarlen = Sysfunc("memequal_varlen")
memhashvarlen = sysfunc("memhash_varlen")
memequalvarlen = sysfunc("memequal_varlen")
}
// make hash closure
......
......@@ -70,32 +70,32 @@ func initssaconfig() {
ssaCaches = make([]ssa.Cache, nBackendWorkers)
// Set up some runtime functions we'll need to call.
Newproc = Sysfunc("newproc")
Deferproc = Sysfunc("deferproc")
Deferreturn = Sysfunc("deferreturn")
Duffcopy = Sysfunc("duffcopy")
Duffzero = Sysfunc("duffzero")
panicindex = Sysfunc("panicindex")
panicslice = Sysfunc("panicslice")
panicdivide = Sysfunc("panicdivide")
growslice = Sysfunc("growslice")
panicdottypeE = Sysfunc("panicdottypeE")
panicdottypeI = Sysfunc("panicdottypeI")
panicnildottype = Sysfunc("panicnildottype")
assertE2I = Sysfunc("assertE2I")
assertE2I2 = Sysfunc("assertE2I2")
assertI2I = Sysfunc("assertI2I")
assertI2I2 = Sysfunc("assertI2I2")
goschedguarded = Sysfunc("goschedguarded")
writeBarrier = Sysfunc("writeBarrier")
writebarrierptr = Sysfunc("writebarrierptr")
typedmemmove = Sysfunc("typedmemmove")
typedmemclr = Sysfunc("typedmemclr")
Udiv = Sysfunc("udiv")
Newproc = sysfunc("newproc")
Deferproc = sysfunc("deferproc")
Deferreturn = sysfunc("deferreturn")
Duffcopy = sysfunc("duffcopy")
Duffzero = sysfunc("duffzero")
panicindex = sysfunc("panicindex")
panicslice = sysfunc("panicslice")
panicdivide = sysfunc("panicdivide")
growslice = sysfunc("growslice")
panicdottypeE = sysfunc("panicdottypeE")
panicdottypeI = sysfunc("panicdottypeI")
panicnildottype = sysfunc("panicnildottype")
assertE2I = sysfunc("assertE2I")
assertE2I2 = sysfunc("assertE2I2")
assertI2I = sysfunc("assertI2I")
assertI2I2 = sysfunc("assertI2I2")
goschedguarded = sysfunc("goschedguarded")
writeBarrier = sysfunc("writeBarrier")
writebarrierptr = sysfunc("writebarrierptr")
typedmemmove = sysfunc("typedmemmove")
typedmemclr = sysfunc("typedmemclr")
Udiv = sysfunc("udiv")
// GO386=387 runtime functions
ControlWord64trunc = Sysfunc("controlWord64trunc")
ControlWord32 = Sysfunc("controlWord32")
ControlWord64trunc = sysfunc("controlWord64trunc")
ControlWord32 = sysfunc("controlWord32")
}
// 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