cmd/internal/gc: convert yet more Node fields to bools

Convert Embedded, Method, and Colas to bools.

I believe that this is the last of the Node fields
that can be trivially converted to bools.

No functional changes. Passes toolstash -cmp.

Change-Id: I81962ee47866596341fc60d24d6959c20cd7fc1c
Reviewed-on: https://go-review.googlesource.com/8440
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Josh Bleecher Snyder 2015-04-02 19:58:37 -07:00
parent be4c38ed34
commit 75883bae28
23 changed files with 103 additions and 103 deletions

View file

@ -529,7 +529,7 @@ func simplename(n *Node) bool {
if n.Op != ONAME {
return false
}
if n.Addable == 0 {
if !n.Addable {
return false
}
if n.Class&PHEAP != 0 {
@ -1239,7 +1239,7 @@ func stataddr(nam *Node, n *Node) bool {
switch n.Op {
case ONAME:
*nam = *n
return n.Addable != 0
return n.Addable
case ODOT:
if !stataddr(nam, n.Left) {