mirror of
https://github.com/golang/go
synced 2024-11-23 20:20:01 -07:00
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: Avelino <t@avelino.xxx> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
a6ae01a64a
commit
3b87defe4e
@ -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 {
|
|||||||
|
|
||||||
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 {
|
|||||||
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() {
|
|||||||
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user