]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: replace AGLOBL with (*Link).Globl
authorMatthew Dempsky <mdempsky@google.com>
Fri, 16 Sep 2016 22:31:04 +0000 (15:31 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Sat, 17 Sep 2016 00:51:47 +0000 (00:51 +0000)
commit6fe1febc867237fdf9ae40483044ed377144627f
tree83dad26b8be66cc47e308053999f827cd95bbb77
parenta1bf203b57ab854f2c1b7668ae96bc34e60e02fc
cmd/internal/obj: replace AGLOBL with (*Link).Globl

Replace the AGLOBL pseudo-op with a method to directly register an
LSym as a global. Similar to how we previously already replaced the
ADATA pseudo-op with directly writing out data bytes.

Passes toolstash -cmp.

Change-Id: I3631af0a2ab5798152d0c26b833dc309dbec5772
Reviewed-on: https://go-review.googlesource.com/29366
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/asm/internal/asm/asm.go
src/cmd/compile/internal/gc/dcl.go
src/cmd/compile/internal/gc/gsubr.go
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/gc/plive.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/plist.go
src/cmd/internal/obj/util.go
src/cmd/internal/obj/x86/asm6.go