• Matthew Dempsky's avatar
    cmd/compile: remove funcdepth variables · d7eb4901
    Matthew Dempsky authored
    There were only two large classes of use for these variables:
    
    1) Testing "funcdepth != 0" or "funcdepth > 0", which is equivalent to
    checking "Curfn != nil".
    
    2) In oldname, detecting whether a closure variable has been created
    for the current function, which can be handled by instead testing
    "n.Name.Curfn != Curfn".
    
    Lastly, merge funcstart into funchdr, since it's only called once, and
    it better matches up with funcbody now.
    
    Passes toolstash-check.
    
    Change-Id: I8fe159a9d37ef7debc4cd310354cea22a8b23394
    Reviewed-on: https://go-review.googlesource.com/99076
    Run-TryBot: Matthew Dempsky <mdempsky@google.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    d7eb4901
Name
Last commit
Last update
..
addr2line Loading commit data...
api Loading commit data...
asm Loading commit data...
buildid Loading commit data...
cgo Loading commit data...
compile Loading commit data...
cover Loading commit data...
dist Loading commit data...
doc Loading commit data...
fix Loading commit data...
go Loading commit data...
gofmt Loading commit data...
internal Loading commit data...
link Loading commit data...
nm Loading commit data...
objdump Loading commit data...
pack Loading commit data...
pprof Loading commit data...
test2json Loading commit data...
trace Loading commit data...
vendor Loading commit data...
vet Loading commit data...