diff options
author | Keith Randall <khr@golang.org> | 2017-08-17 12:23:34 -0700 |
---|---|---|
committer | Keith Randall <khr@golang.org> | 2017-08-17 21:53:08 +0000 |
commit | bf4d8d3d055c47c03d8e0e05e8d07fd94f793e53 (patch) | |
tree | 83192d8b9c93800088cff335a5f8378f7cb2406b /src/cmd/compile/internal/ssa/print.go | |
parent | 455775dae63eb1277227cbde9e99dc67a3fdb0ea (diff) | |
download | go-bf4d8d3d055c47c03d8e0e05e8d07fd94f793e53.tar.gz go-bf4d8d3d055c47c03d8e0e05e8d07fd94f793e53.zip |
cmd/compile: rename SSA Register.Name to Register.String
Just to get rid of lots of .Name() stutter in printf calls.
Change-Id: I86cf00b3f7b2172387a1c6a7f189c1897fab6300
Reviewed-on: https://go-review.googlesource.com/56630
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ssa/print.go')
-rw-r--r-- | src/cmd/compile/internal/ssa/print.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ssa/print.go b/src/cmd/compile/internal/ssa/print.go index d2a87eb615..d66530a373 100644 --- a/src/cmd/compile/internal/ssa/print.go +++ b/src/cmd/compile/internal/ssa/print.go @@ -78,7 +78,7 @@ func (p stringFuncPrinter) startDepCycle() { func (p stringFuncPrinter) endDepCycle() {} func (p stringFuncPrinter) named(n LocalSlot, vals []*Value) { - fmt.Fprintf(p.w, "name %s: %v\n", n.Name(), vals) + fmt.Fprintf(p.w, "name %s: %v\n", n, vals) } func fprintFunc(p funcPrinter, f *Func) { |