[dev.regabi] cmd/compile: remove Func.ClosureEnter

We can easily compute this on demand.

Passes toolstash -cmp.

Change-Id: I433d8adb2b1615ae05b2764e69904369a59542c5
Reviewed-on: https://go-review.googlesource.com/c/go/+/280994
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Matthew Dempsky 2021-01-01 02:14:45 -08:00
parent ece345aa69
commit 9ed1577779
5 changed files with 27 additions and 21 deletions

View file

@ -75,13 +75,6 @@ type Func struct {
// Byval set if they're captured by value.
ClosureVars []*Name
// ClosureEnter holds the expressions that the enclosing function
// will use to initialize the closure's free variables. These
// correspond one-to-one with the variables in ClosureVars, and will
// be either an ONAME node (if the variable is captured by value) or
// an OADDR-of-ONAME node (if not).
ClosureEnter Nodes
// Parents records the parent scope of each scope within a
// function. The root scope (0) has no parent, so the i'th
// scope's parent is stored at Parents[i-1].