• Than McIntosh's avatar
    cmd/compile: include non-decomposed vars for -dwarflocationlists · 87f83eac
    Than McIntosh authored
    When enhanced DWARF location list generation is enabled (via internal
    option -dwarflocationlists), variable entries were missing for "large"
    (non-decomposable) locals and formals. From the debugging perspective,
    this makes it appear that the variable doesn't exist, which is
    probably not what we want. This change insures that a formal/local DIE
    is created for these vars (with correct type, line, etc) but with a
    conservative ("no info") location.
    
    Change-Id: I10b2e9a51a60c7b4c748e987cdec5f2d8b2837d5
    Reviewed-on: https://go-review.googlesource.com/72630
    
    
    Run-TryBot: Than McIntosh <thanm@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarHeschi Kreinick <heschi@google.com>
    87f83eac
pgen.go 21.5 KB