Commit f973e79d authored by Matthew Dempsky's avatar Matthew Dempsky

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/20593Reviewed-by: default avatarDave Cheney <dave@cheney.net>
parent 3621600c
...@@ -99,18 +99,6 @@ type Label struct { ...@@ -99,18 +99,6 @@ type Label struct {
Used bool 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 type SymFlags uint8
const ( const (
......
...@@ -16,6 +16,18 @@ const ( ...@@ -16,6 +16,18 @@ const (
InitPending = 2 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 ( var (
initlist []*Node initlist []*Node
initplans map[*Node]*InitPlan initplans map[*Node]*InitPlan
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment