aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/obj.go
diff options
context:
space:
mode:
authorCherry Zhang <cherryyz@google.com>2020-10-21 20:15:48 -0400
committerCherry Zhang <cherryyz@google.com>2020-10-30 20:55:43 +0000
commit84d7a85089009332756c18e876ec91f96b362ebf (patch)
treee38deee2d557565af0005b9481734a24a79db272 /src/cmd/compile/internal/gc/obj.go
parent89a6540d8a93b95620080a8145c9882b063e3e46 (diff)
downloadgo-84d7a85089009332756c18e876ec91f96b362ebf.tar.gz
go-84d7a85089009332756c18e876ec91f96b362ebf.zip
cmd/compile: delete register maps, completely
Remove go115ReduceLiveness feature gating flag, along with code that only needed when go115ReduceLiveness is false. Change-Id: I7571913cc74cbd17b330a0ee0160fefc9eeee66e Reviewed-on: https://go-review.googlesource.com/c/go/+/264338 Trust: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/obj.go')
-rw-r--r--src/cmd/compile/internal/gc/obj.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/gc/obj.go b/src/cmd/compile/internal/gc/obj.go
index 226eb45252..32aa7c5bb1 100644
--- a/src/cmd/compile/internal/gc/obj.go
+++ b/src/cmd/compile/internal/gc/obj.go
@@ -312,7 +312,7 @@ func addGCLocals() {
if fn == nil {
continue
}
- for _, gcsym := range []*obj.LSym{fn.GCArgs, fn.GCLocals, fn.GCRegs} {
+ for _, gcsym := range []*obj.LSym{fn.GCArgs, fn.GCLocals} {
if gcsym != nil && !gcsym.OnList() {
ggloblsym(gcsym, int32(len(gcsym.P)), obj.RODATA|obj.DUPOK)
}