]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: display NamedValues in SSA html output.
authorHeschi Kreinick <heschi@google.com>
Tue, 7 Feb 2017 20:49:43 +0000 (15:49 -0500)
committerMatthew Dempsky <mdempsky@google.com>
Wed, 15 Feb 2017 21:11:57 +0000 (21:11 +0000)
Change-Id: If268b42b32e6bcd6e7913bffa6e493dc78af40aa
Reviewed-on: https://go-review.googlesource.com/36539
TryBot-Result: Gobot Gobot <gobot@golang.org>
Run-TryBot: Heschi Kreinick <heschi@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ssa/html.go

index 085094e3ad5617dca2cac5aa3c0c020b00de3265..28538245d58ccf0c30cf4858403992bba4fce071 100644 (file)
@@ -471,5 +471,9 @@ func (p htmlFuncPrinter) endDepCycle() {
 }
 
 func (p htmlFuncPrinter) named(n LocalSlot, vals []*Value) {
-       // TODO
+       fmt.Fprintf(p.w, "<li>name %s: ", n.Name())
+       for _, val := range vals {
+               fmt.Fprintf(p.w, "%s ", val.HTML())
+       }
+       fmt.Fprintf(p.w, "</li>")
 }