mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove AttrSeenGlobl (use AttrOnList instead)
Minor cleanup: remove the symbol attribute AttrSeenGlobal, since it is redundant with the existing attribute AttrOnList (no need to have what amounts to a separate flag for checking the same property). Change-Id: Ia269b64de37c2bb4a2314bbecf3d2091c6d57424 Reviewed-on: https://go-review.googlesource.com/c/go/+/239477 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
parent
933ca0cfdc
commit
c2e73fb446
3 changed files with 1 additions and 8 deletions
|
|
@ -352,7 +352,7 @@ func stringsym(pos src.XPos, s string) (data *obj.LSym) {
|
|||
|
||||
symdata := Ctxt.Lookup(symdataname)
|
||||
|
||||
if !symdata.SeenGlobl() {
|
||||
if !symdata.OnList() {
|
||||
// string data
|
||||
off := dsname(symdata, 0, s, pos, "string")
|
||||
ggloblsym(symdata, int32(off), obj.DUPOK|obj.RODATA|obj.LOCAL)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue