]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: simplify walkprint
authorJosh Bleecher Snyder <josharian@gmail.com>
Sat, 20 May 2017 00:12:57 +0000 (17:12 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 15 Aug 2017 21:53:43 +0000 (21:53 +0000)
commit8b68fafd1f74fce1cb9c085c979134f012d2b8fc
tree4748fcc26f3e9614cabcc59bcc4c676215304d6f
parentd647b612d6ec69269600ff59d364e778db98d99e
cmd/compile: simplify walkprint

Superficial simplifications: reduce variable scope,
eliminate pointless temporaries, use a switch statement.

Passes toolstash-check.

Change-Id: I6450493a0583a6ce8ec0461b66954cf1445a754f
Reviewed-on: https://go-review.googlesource.com/55095
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Marvin Stenger <marvin.stenger94@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/walk.go