]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: add ORESULT, remove OINDREGSP
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 5 Apr 2019 23:43:08 +0000 (16:43 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 8 Apr 2019 21:33:15 +0000 (21:33 +0000)
commit336f951b07645e3c5ce8d624b1af0dcd5a80b948
tree395ebb8817993c6a78aae2f330c09fb4a2302f8c
parente4665da9bcdd4e9136c7ed97ab4253def130b89d
cmd/compile: add ORESULT, remove OINDREGSP

This change is mostly cosmetic.

OINDREGSP was used only for reading the results of a function call.
In recognition of that fact, rename it to ORESULT.
Along the way, trim down our handling of it to the bare minimum,
and rely on the increased clarity of ORESULT to inline nodarg.

Passes toolstash-check.

Change-Id: I25b177df4ea54a8e94b1698d044c297b7e453c64
Reviewed-on: https://go-review.googlesource.com/c/go/+/170705
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/fmt.go
src/cmd/compile/internal/gc/op_string.go
src/cmd/compile/internal/gc/ssa.go
src/cmd/compile/internal/gc/syntax.go
src/cmd/compile/internal/gc/walk.go