]> Cypherpunks repositories - gostls13.git/commit
cmd/link: move dwarf part of DWARF generation before type name mangling
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Tue, 24 Apr 2018 11:05:10 +0000 (13:05 +0200)
committerHeschi Kreinick <heschi@google.com>
Tue, 4 Sep 2018 17:44:41 +0000 (17:44 +0000)
commit9c833831b2bdaa465349194797cf3894cb85f9c4
tree42c77adeaf1be0399c3586a0a4e10c38fc38237f
parent669fa8f36a298cc0e2d1f817ca30c8d613ce7483
cmd/link: move dwarf part of DWARF generation before type name mangling

Splits part of dwarfgeneratedebugsyms into a new function,
dwarfGenerateDebugInfo which is called between deadcode elimination
and type name mangling.
This function takes care of collecting and processing the DIEs for
all functions and package-level variables and also generates DIEs
for all types used in the program.

Fixes #23733

Change-Id: I75ef0608fbed2dffc3be7a477f1b03e7e740ec61
Reviewed-on: https://go-review.googlesource.com/111237
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
misc/cgo/testplugin/src/checkdwarf/main.go [new file with mode: 0644]
misc/cgo/testplugin/test.bash
src/cmd/link/internal/ld/data.go
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/main.go
src/cmd/link/internal/objfile/objfile.go
src/cmd/link/internal/sym/symbol.go