mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: repair display of values & blocks in prog column
This restores the printing of vXX and bYY in the left-hand edge of the last column of ssa.html, where the generated progs appear. Change-Id: I81ab9b2fa5ae28e6e5de1b77665cfbed8d14e000 Reviewed-on: https://go-review.googlesource.com/c/141277 Run-TryBot: David Chase <drchase@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Yury Smolsky <yury@smolsky.by>
This commit is contained in:
parent
bac6a2925c
commit
69c5830c2b
3 changed files with 15 additions and 11 deletions
|
|
@ -153,8 +153,12 @@ var BlockEnd = &Value{
|
|||
// RegisterSet is a bitmap of registers, indexed by Register.num.
|
||||
type RegisterSet uint64
|
||||
|
||||
// logf prints debug-specific logging to stdout (always stdout) if the current
|
||||
// function is tagged by GOSSAFUNC (for ssa output directed either to stdout or html).
|
||||
func (s *debugState) logf(msg string, args ...interface{}) {
|
||||
s.f.Logf(msg, args...)
|
||||
if s.f.PrintOrHtmlSSA {
|
||||
fmt.Printf(msg, args...)
|
||||
}
|
||||
}
|
||||
|
||||
type debugState struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue