• Matthew Dempsky's avatar
    cmd/compile: simplify exporting ONAME nodes · c64e7938
    Matthew Dempsky authored
    These two special cases are unnecessary:
    
    1) "~b%d" references only appear during walk, to handle "return"
    statements implicitly assigning to blank result parameters. Even if
    they could appear, the "inlined and customized version" accidentally
    diverged from p.sym in golang.org/cl/33911.
    
    2) The Vargen case is already identical to the default case, and it
    never overlaps with the remaining "T.method" case.
    
    Passes toolstash-check.
    
    Change-Id: I03f7e5b75b707b43afc8ed6eb90f43ba93ed17ae
    Reviewed-on: https://go-review.googlesource.com/63272
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: default avatarAlan Donovan <adonovan@google.com>
    c64e7938
bexport.go 46.1 KB