Commit e7f59f02 authored by Tobias Klauser's avatar Tobias Klauser Committed by Tobias Klauser

cmd/compile/internal/gc: unexport Deferproc and Newproc

They are no longer used outside the package since CL 38080.

Passes toolstash-check -all

Change-Id: I30977ed2b233b7c8c53632cc420938bc3b0e37c6
Reviewed-on: https://go-review.googlesource.com/129781
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent d7ab57ef
...@@ -281,7 +281,7 @@ var ( ...@@ -281,7 +281,7 @@ var (
assertE2I2, assertE2I2,
assertI2I, assertI2I,
assertI2I2, assertI2I2,
Deferproc, deferproc,
Deferreturn, Deferreturn,
Duffcopy, Duffcopy,
Duffzero, Duffzero,
...@@ -290,7 +290,7 @@ var ( ...@@ -290,7 +290,7 @@ var (
growslice, growslice,
msanread, msanread,
msanwrite, msanwrite,
Newproc, newproc,
panicdivide, panicdivide,
panicdottypeE, panicdottypeE,
panicdottypeI, panicdottypeI,
......
...@@ -56,7 +56,7 @@ func initssaconfig() { ...@@ -56,7 +56,7 @@ func initssaconfig() {
assertE2I2 = sysfunc("assertE2I2") assertE2I2 = sysfunc("assertE2I2")
assertI2I = sysfunc("assertI2I") assertI2I = sysfunc("assertI2I")
assertI2I2 = sysfunc("assertI2I2") assertI2I2 = sysfunc("assertI2I2")
Deferproc = sysfunc("deferproc") deferproc = sysfunc("deferproc")
Deferreturn = sysfunc("deferreturn") Deferreturn = sysfunc("deferreturn")
Duffcopy = sysfunc("duffcopy") Duffcopy = sysfunc("duffcopy")
Duffzero = sysfunc("duffzero") Duffzero = sysfunc("duffzero")
...@@ -65,7 +65,7 @@ func initssaconfig() { ...@@ -65,7 +65,7 @@ func initssaconfig() {
growslice = sysfunc("growslice") growslice = sysfunc("growslice")
msanread = sysfunc("msanread") msanread = sysfunc("msanread")
msanwrite = sysfunc("msanwrite") msanwrite = sysfunc("msanwrite")
Newproc = sysfunc("newproc") newproc = sysfunc("newproc")
panicdivide = sysfunc("panicdivide") panicdivide = sysfunc("panicdivide")
panicdottypeE = sysfunc("panicdottypeE") panicdottypeE = sysfunc("panicdottypeE")
panicdottypeI = sysfunc("panicdottypeI") panicdottypeI = sysfunc("panicdottypeI")
...@@ -3578,7 +3578,7 @@ func (s *state) call(n *Node, k callKind) *ssa.Value { ...@@ -3578,7 +3578,7 @@ func (s *state) call(n *Node, k callKind) *ssa.Value {
// Defer/go args // Defer/go args
if k != callNormal { if k != callNormal {
// Write argsize and closure (args to Newproc/Deferproc). // Write argsize and closure (args to newproc/deferproc).
argStart := Ctxt.FixedFrameSize() argStart := Ctxt.FixedFrameSize()
argsize := s.constInt32(types.Types[TUINT32], int32(stksize)) argsize := s.constInt32(types.Types[TUINT32], int32(stksize))
addr := s.constOffPtrSP(s.f.Config.Types.UInt32Ptr, argStart) addr := s.constOffPtrSP(s.f.Config.Types.UInt32Ptr, argStart)
...@@ -3592,9 +3592,9 @@ func (s *state) call(n *Node, k callKind) *ssa.Value { ...@@ -3592,9 +3592,9 @@ func (s *state) call(n *Node, k callKind) *ssa.Value {
var call *ssa.Value var call *ssa.Value
switch { switch {
case k == callDefer: case k == callDefer:
call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, Deferproc, s.mem()) call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, deferproc, s.mem())
case k == callGo: case k == callGo:
call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, Newproc, s.mem()) call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, newproc, s.mem())
case closure != nil: case closure != nil:
// rawLoad because loading the code pointer from a // rawLoad because loading the code pointer from a
// closure is always safe, but IsSanitizerSafeAddr // closure is always safe, but IsSanitizerSafeAddr
......
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