]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: replace Order's use of NodeLists with slices
authorMatthew Dempsky <mdempsky@google.com>
Sun, 21 Feb 2016 02:49:22 +0000 (18:49 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sun, 21 Feb 2016 23:20:43 +0000 (23:20 +0000)
commit89cfdda44dec9f1e4e7f9ac360638fecee2482c6
tree0a730c94694b1a47a95e5b20aeb4d238a33709af
parentd70c04cf08683e2b0a26fb13808f8cacb1bcdd38
cmd/compile: replace Order's use of NodeLists with slices

Order's "temp" and "free" fields use NodeLists in a rather
non-idiomatic way.  Instead of using the "list" or "concat" functions,
it manipulates them directly and without the normal invariants (e.g.,
it doesn't maintain the "End" field).

Rather than convert it to more typical usage, just replace with a
slice, which ends up much simpler anyway.

Passes toolstash/buildall.

Change-Id: Ibd0f24324bd674c0d5bb1bc40d073b01e7824ad5
Reviewed-on: https://go-review.googlesource.com/19776
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/order.go