]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: remove gdata layer in slicesym
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 8 Apr 2020 20:51:25 +0000 (13:51 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 9 Apr 2020 01:17:53 +0000 (01:17 +0000)
commit0a18cbc2e61a124b8fa142c4be288ec0c45ccb5d
treef01b7151692e40498b3b8eaabc5a951d80784744
parent7096b1700d0961c7dac18c928bece1e98f1adedf
cmd/compile: remove gdata layer in slicesym

The previous change moved code around to create slicesym.
This change simplifies slicesym and its callsites
by accepting an int64 for lencap instead of a node,
and by removing all the calls to gdata.
It also stops modifying n,
which avoids the need to make a copy of it.

Passes toolstash-check.

Change-Id: I4d25454d11b4bb8941000244443e3c99eef4bdd0
Reviewed-on: https://go-review.googlesource.com/c/go/+/227550
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/gc/sinit.go