]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: ir.BranchStmt, add ir.EmptyStmt, ir.LabelStmt
authorRuss Cox <rsc@golang.org>
Sat, 28 Nov 2020 05:43:50 +0000 (00:43 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 30 Nov 2020 18:33:54 +0000 (18:33 +0000)
commitbe3d8b40b5447f787174015260e85b5198e8f7e6
tree752ed48c943d0fc98d675ac5a20d5c36b0557413
parentb09dbc69132aeee3571867cd269f5273290a2255
[dev.regabi] cmd/compile: ir.BranchStmt, add ir.EmptyStmt, ir.LabelStmt

These are the first three specific implementations of Node.
They are both a bit of a warmup and also working toward
removing references to Name from Node types other than
the proper named things - ONAME, ONONAME, OTYPE, OLITERAL.
(In this case, BranchStmt and LabelStmt.)

Passes buildall w/ toolstash -cmp.

Change-Id: Ide816b162025ee4c858dd061d7c29ed633fb7baf
Reviewed-on: https://go-review.googlesource.com/c/go/+/274091
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/mini.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/stmt.go [new file with mode: 0644]