From 35a95df5710e485f0621cb123dc2e528d0a6146c Mon Sep 17 00:00:00 2001 From: Heschi Kreinick Date: Tue, 7 Feb 2017 15:49:43 -0500 Subject: [PATCH] cmd/compile/internal/ssa: display NamedValues in SSA html output. Change-Id: If268b42b32e6bcd6e7913bffa6e493dc78af40aa Reviewed-on: https://go-review.googlesource.com/36539 TryBot-Result: Gobot Gobot Run-TryBot: Heschi Kreinick Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/ssa/html.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/cmd/compile/internal/ssa/html.go b/src/cmd/compile/internal/ssa/html.go index 085094e3ad5..28538245d58 100644 --- a/src/cmd/compile/internal/ssa/html.go +++ b/src/cmd/compile/internal/ssa/html.go @@ -471,5 +471,9 @@ func (p htmlFuncPrinter) endDepCycle() { } func (p htmlFuncPrinter) named(n LocalSlot, vals []*Value) { - // TODO + fmt.Fprintf(p.w, "
  • name %s: ", n.Name()) + for _, val := range vals { + fmt.Fprintf(p.w, "%s ", val.HTML()) + } + fmt.Fprintf(p.w, "
  • ") }