From: Matthew Dempsky Date: Fri, 11 Mar 2016 08:44:39 +0000 (-0800) Subject: cmd/compile: move InitPlan and InitEntry into sinit.go X-Git-Tag: go1.7beta1~1395 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f973e79d096be18ad4272ad97803b7c08fca4dd0;p=gostls13.git cmd/compile: move InitPlan and InitEntry into sinit.go I don't know what they're used for, but that's the only file they're referenced in. Change-Id: Ie39d7d4621e2d5224408243b5789597ca0dc14be Reviewed-on: https://go-review.googlesource.com/20593 Reviewed-by: Dave Cheney --- diff --git a/src/cmd/compile/internal/gc/go.go b/src/cmd/compile/internal/gc/go.go index bd7114d033..ddb6f84a13 100644 --- a/src/cmd/compile/internal/gc/go.go +++ b/src/cmd/compile/internal/gc/go.go @@ -99,18 +99,6 @@ type Label struct { Used bool } -type InitEntry struct { - Xoffset int64 // struct, array only - Expr *Node // bytes of run-time computed expressions -} - -type InitPlan struct { - Lit int64 - Zero int64 - Expr int64 - E []InitEntry -} - type SymFlags uint8 const ( diff --git a/src/cmd/compile/internal/gc/sinit.go b/src/cmd/compile/internal/gc/sinit.go index 3b0d269395..b1b774a7f1 100644 --- a/src/cmd/compile/internal/gc/sinit.go +++ b/src/cmd/compile/internal/gc/sinit.go @@ -16,6 +16,18 @@ const ( InitPending = 2 ) +type InitEntry struct { + Xoffset int64 // struct, array only + Expr *Node // bytes of run-time computed expressions +} + +type InitPlan struct { + Lit int64 + Zero int64 + Expr int64 + E []InitEntry +} + var ( initlist []*Node initplans map[*Node]*InitPlan