• Matthew Dempsky's avatar
    cmd/compile/internal/types: simplify dclstack · a53e8539
    Matthew Dempsky authored
    We used to backup symbol declarations using complete Syms, but this
    was unnecessary: very few of Sym's fields were actually needed. Also,
    to restore a symbol, we had to re-Lookup the Sym in its Pkg.
    
    By introducing a new dedicated dsym type for this purpose, we can
    address both of these deficiencies.
    
    Passes toolstash-check.
    
    Change-Id: I39f3d672b301f84a3a62b9b34b4b2770cb25df79
    Reviewed-on: https://go-review.googlesource.com/64811
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
    a53e8539
scope.go 1.79 KB