]> Cypherpunks repositories - gostls13.git/commit
cmd/{compile,link}: relocate generation of DWARF for global vars
authorThan McIntosh <thanm@google.com>
Thu, 7 Jan 2021 21:25:41 +0000 (16:25 -0500)
committerThan McIntosh <thanm@google.com>
Tue, 23 Mar 2021 00:29:52 +0000 (00:29 +0000)
commitc819907754a30229da197546a36eb4a160e5908f
treef07153fbc70bd20bed4a1b9a6dfbe51bc1b3004d
parent1c9e587b90172e7654db897d8c938ffc665e1673
cmd/{compile,link}: relocate generation of DWARF for global vars

Move DWARF generation for global variables from the linker to the
compiler. This effectively parallelizes this part of DWARF generation,
speeds up the linker minutely, and gives us a slightly more rational
implementation (there was really no compelling reason to do DWARF gen
for globals in the linker).

Change-Id: I0c1c98d3a647258697e90eb91d1d8a9f6f7f376a
Reviewed-on: https://go-review.googlesource.com/c/go/+/295011
Trust: Than McIntosh <thanm@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/gc/obj.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/obj/dwarf.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/sym/compilation_unit.go