]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: move InitPlan and InitEntry into sinit.go
authorMatthew Dempsky <mdempsky@google.com>
Fri, 11 Mar 2016 08:44:39 +0000 (00:44 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 11 Mar 2016 09:09:51 +0000 (09:09 +0000)
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 <dave@cheney.net>
src/cmd/compile/internal/gc/go.go
src/cmd/compile/internal/gc/sinit.go

index bd7114d033f2621c06d746a794bc87c193032293..ddb6f84a134e112017cfc35788de66e7b9a014ff 100644 (file)
@@ -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 (
index 3b0d2693955163ef424f566108bd3de554532352..b1b774a7f1095b8c7c73712b1aaabaca5a8aeaa7 100644 (file)
@@ -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