mirror of
https://github.com/golang/go
synced 2024-11-12 05:50:21 -07:00
cmd/compile: remove _ssa print trigger
SSA is a real compiler now, don't trigger on function names. Change-Id: Iaf6dd78248c1b6ca2630275bd59f7ea7b7576497 Reviewed-on: https://go-review.googlesource.com/20088 Reviewed-by: David Chase <drchase@google.com> Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
a6fb2aede7
commit
59681802ad
@ -81,7 +81,7 @@ func shouldssa(fn *Node) bool {
|
||||
// buildssa builds an SSA function.
|
||||
func buildssa(fn *Node) *ssa.Func {
|
||||
name := fn.Func.Nname.Sym.Name
|
||||
printssa := strings.HasSuffix(name, "_ssa") || strings.Contains(name, "_ssa.") || name == os.Getenv("GOSSAFUNC")
|
||||
printssa := name == os.Getenv("GOSSAFUNC")
|
||||
if printssa {
|
||||
fmt.Println("generating SSA for", name)
|
||||
dumpslice("buildssa-enter", fn.Func.Enter.Slice())
|
||||
|
Loading…
Reference in New Issue
Block a user