• Matthew Dempsky's avatar
    cmd/compile: remove -newescape flag · 991b0fd4
    Matthew Dempsky authored
    Drops support for old escape analysis pass. Subsequent, separate CL
    will remove dead code.
    
    While here, fix a minor error in fmt.go: it was still looking for
    esc.go's NodeEscState in n.Opt() rather than escape.go's EscLocation.
    But this only affected debug diagnostics printed during escape
    analysis itself.
    
    Change-Id: I62512e1b31c75ba0577550a5fd7824abc3159ed5
    Reviewed-on: https://go-review.googlesource.com/c/go/+/187597Reviewed-by: default avatarRobert Griesemer <gri@golang.org>
    Run-TryBot: Robert Griesemer <gri@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    991b0fd4
main.go 42.3 KB