]> Cypherpunks repositories - gostls13.git/commit
cmd/link: emit DW_AT_data_member_location as a constant
authorHeschi Kreinick <heschi@google.com>
Wed, 26 Jul 2017 19:58:25 +0000 (15:58 -0400)
committerHeschi Kreinick <heschi@google.com>
Thu, 31 Aug 2017 19:42:23 +0000 (19:42 +0000)
commit37dbfc51b04e13ad3441cf0080a33ae56de77169
tree37eaab29b66a99c422577fb59d8c03dff8309d57
parent1d07ed15798b1228a2777c8ad80353b17a9ad8bd
cmd/link: emit DW_AT_data_member_location as a constant

Simplify the DWARF representation of structs by emitting field offsets
as constants rather than location descriptions.

This was not explicitly mentioned as an option in DWARF2. It is
mentioned in DWARF4, but isn't listed in the changes, so it's not clear
if this was always intended to work or is an undocumented change. Either
way, it should be valid DWARF4.

Change-Id: Idf7fdd397a21c8f8745673ecc77ef65afa3ffe1c
Reviewed-on: https://go-review.googlesource.com/51611
Run-TryBot: Heschi Kreinick <heschi@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/internal/dwarf/dwarf.go
src/cmd/link/internal/ld/dwarf.go