]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: unexport Deferproc and Newproc
authorTobias Klauser <tklauser@distanz.ch>
Mon, 20 Aug 2018 08:55:26 +0000 (10:55 +0200)
committerTobias Klauser <tobias.klauser@gmail.com>
Tue, 21 Aug 2018 08:12:06 +0000 (08:12 +0000)
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: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/ssa.go

index 95bf562e2c1afc986e52786a4ee8387dfe6af88f..d8ab5eb39cc6ba3022add4a872cbde3c0aaa11fc 100644 (file)
@@ -281,7 +281,7 @@ var (
        assertE2I2,
        assertI2I,
        assertI2I2,
-       Deferproc,
+       deferproc,
        Deferreturn,
        Duffcopy,
        Duffzero,
@@ -290,7 +290,7 @@ var (
        growslice,
        msanread,
        msanwrite,
-       Newproc,
+       newproc,
        panicdivide,
        panicdottypeE,
        panicdottypeI,
index 86b457b75821e8f6e0d0f8bc2bffbd12e7c67bbd..199e4d9072944d2f791a7c9d5516dcf7feafb5e7 100644 (file)
@@ -56,7 +56,7 @@ func initssaconfig() {
        assertE2I2 = sysfunc("assertE2I2")
        assertI2I = sysfunc("assertI2I")
        assertI2I2 = sysfunc("assertI2I2")
-       Deferproc = sysfunc("deferproc")
+       deferproc = sysfunc("deferproc")
        Deferreturn = sysfunc("deferreturn")
        Duffcopy = sysfunc("duffcopy")
        Duffzero = sysfunc("duffzero")
@@ -65,7 +65,7 @@ func initssaconfig() {
        growslice = sysfunc("growslice")
        msanread = sysfunc("msanread")
        msanwrite = sysfunc("msanwrite")
-       Newproc = sysfunc("newproc")
+       newproc = sysfunc("newproc")
        panicdivide = sysfunc("panicdivide")
        panicdottypeE = sysfunc("panicdottypeE")
        panicdottypeI = sysfunc("panicdottypeI")
@@ -3578,7 +3578,7 @@ func (s *state) call(n *Node, k callKind) *ssa.Value {
 
        // Defer/go args
        if k != callNormal {
-               // Write argsize and closure (args to Newproc/Deferproc).
+               // Write argsize and closure (args to newproc/deferproc).
                argStart := Ctxt.FixedFrameSize()
                argsize := s.constInt32(types.Types[TUINT32], int32(stksize))
                addr := s.constOffPtrSP(s.f.Config.Types.UInt32Ptr, argStart)
@@ -3592,9 +3592,9 @@ func (s *state) call(n *Node, k callKind) *ssa.Value {
        var call *ssa.Value
        switch {
        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:
-               call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, Newproc, s.mem())
+               call = s.newValue1A(ssa.OpStaticCall, types.TypeMem, newproc, s.mem())
        case closure != nil:
                // rawLoad because loading the code pointer from a
                // closure is always safe, but IsSanitizerSafeAddr