aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/import.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-01-09 23:12:56 -0800
committerMatthew Dempsky <mdempsky@google.com>2021-01-12 02:16:30 +0000
commit106aa941dfda45d4aa5235b12317124aaf8941a0 (patch)
tree9977c0ca22451038ccfa37c449ca43e46ad12415 /src/cmd/compile/internal/noder/import.go
parent6a56c6c870a2ac8bae9e570641521ba5aa83ba51 (diff)
downloadgo-106aa941dfda45d4aa5235b12317124aaf8941a0.tar.gz
go-106aa941dfda45d4aa5235b12317124aaf8941a0.zip
[dev.typeparams] cmd/compile: refactor DWARF scope marking
This CL extracts and simplifies noder's DWARF scope tracking code to make it easier for reuse by irgen. The previous code tried to be really clever about avoid recording multiple scope boundaries at the same position (as happens at the end of "if" and "for" statements). I had a really hard time remember how this code worked exactly, so I've reimplemented a simpler algorithm that just tracks all scope marks, and then compacts them at the end before saving them to the ir.Func. Passes toolstash -cmp. Change-Id: Ibeb37997b77dc5179360d7db557c82ae1682e127 Reviewed-on: https://go-review.googlesource.com/c/go/+/282918 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org> Trust: Robert Griesemer <gri@golang.org> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/noder/import.go')
0 files changed, 0 insertions, 0 deletions