]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: don't generate DWARF info for static vars
authorCherry Mui <cherryyz@google.com>
Sat, 29 Apr 2023 02:15:48 +0000 (22:15 -0400)
committerCherry Mui <cherryyz@google.com>
Tue, 2 May 2023 12:53:37 +0000 (12:53 +0000)
commit3494a726009d049887bb3fb95181f71e07b21da3
treef19d508ff7f58dfcd4a20a82c59965c46c8304a2
parent39ca989b883b913287d282365510a9152a3f80e6
cmd/compile: don't generate DWARF info for static vars

Static data symbols are compiler generated, not user symbols. The
linker already does not include them in the final DWARF section.
Don't generate the DWARF info in the first place.

Change-Id: Id2ae36683bfc1ed60b9924b7305eae5e8aa14d80
Reviewed-on: https://go-review.googlesource.com/c/go/+/490817
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/gc/obj.go