Commit 37c29727 authored by Robert Griesemer's avatar Robert Griesemer

cmd/compile: give SymFlags type to Sym flags

Change-Id: Ifa65a35418c2b5a2c517c0d9bbe37f472091e759
Reviewed-on: https://go-review.googlesource.com/20115
Run-TryBot: Robert Griesemer <gri@golang.org>
Reviewed-by: 's avatarMatthew Dempsky <mdempsky@google.com>
parent a8d4463e
......@@ -67,7 +67,7 @@ type Pkg struct {
}
type Sym struct {
Flags uint8
Flags SymFlags
Uniqgen uint32
Link *Sym
Importdef *Pkg // where imported definition was found
......@@ -175,14 +175,16 @@ type InitPlan struct {
E []InitEntry
}
type SymFlags uint8
const (
SymExport = 1 << 0 // to be exported
SymPackage = 1 << 1
SymExported = 1 << 2 // already written out by export
SymUniq = 1 << 3
SymSiggen = 1 << 4
SymAsm = 1 << 5
SymAlgGen = 1 << 6
SymExport SymFlags = 1 << iota // to be exported
SymPackage
SymExported // already written out by export
SymUniq
SymSiggen
SymAsm
SymAlgGen
)
var dclstack *Sym
......
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