GOSSAFUNC=foo had previously only done printing for the
single function foo, and didn't quite clean up after itself
properly. Changes ensures that Config.HTML != nil iff
GOSSAFUNC==name-of-current-function.
Change-Id: I255e2902dfc64f715d93225f0d29d9525c06f764
Reviewed-on: https://go-review.googlesource.com/29250
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
ssaConfig.Set387(Thearch.Use387)
}
}
+ ssaConfig.HTML = nil
return ssaConfig
}
s.config.HTML = ssa.NewHTMLWriter("ssa.html", s.config, name)
// TODO: generate and print a mapping from nodes to values and blocks
}
- defer func() {
- if !printssa {
- s.config.HTML.Close()
- }
- }()
// Allocate starting block
s.f.Entry = s.f.NewBlock(ssa.BlockPlain)
removevardef(ptxt)
f.Config.HTML.Close()
+ f.Config.HTML = nil
}
type FloatingEQNEJump struct {