]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: emit DWARF info about dictionary entries
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>
Wed, 25 Aug 2021 08:08:07 +0000 (10:08 +0200)
committerThan McIntosh <thanm@google.com>
Wed, 15 Sep 2021 16:32:27 +0000 (16:32 +0000)
commit72bb8185b5fb2fe84ee7cfdc8e9605f2c81b32fe
tree8a2041cabe5cf0b8baa3ad29236e5bb8f5e3a53f
parent5b48fca1fad44d22105f64be725514020432a2c1
cmd/compile: emit DWARF info about dictionary entries

When emitting the DIE of the instantiation of a generic function also
emit one DW_TAG_typedef_type entry for each dictionary entry in use,
referencing the shape type and having a custom attribute containing the
index inside the dictionary.

When emitting the DIE of variables that have an instantiated parametric
type, instead of referencing the shape type directly go through the
DW_TAG_typedef_type entry emitted for the dictionary entry describing
the real type of the variable.

Change-Id: Ia45d157ecd4c25e2b60300469e43bbb27a663582
Reviewed-on: https://go-review.googlesource.com/c/go/+/344929
Run-TryBot: Alessandro Arzilli <alessandro.arzilli@gmail.com>
Run-TryBot: Dan Scales <danscales@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
Trust: Dan Scales <danscales@google.com>
Trust: Jeremy Faller <jeremy@golang.org>
src/cmd/compile/internal/dwarfgen/dwarf.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/noder/stencil.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf_test.go