mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: remove Node.IsStatic field
We can immediately emit static assignment data rather than queueing them up to be processed during SSA building. Passes toolstash -cmp. Change-Id: I8bcea4b72eafb0cc0b849cd93e9cde9d84f30d5e Reviewed-on: https://go-review.googlesource.com/37024 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
This commit is contained in:
parent
3557d54609
commit
c61cf5e6b7
5 changed files with 26 additions and 97 deletions
|
|
@ -335,10 +335,6 @@ func (n *Node) jconv(s fmt.State, flag FmtFlag) {
|
|||
fmt.Fprintf(s, " tc(%d)", n.Typecheck)
|
||||
}
|
||||
|
||||
if c == 0 && n.IsStatic {
|
||||
fmt.Fprint(s, " static")
|
||||
}
|
||||
|
||||
if n.Isddd {
|
||||
fmt.Fprintf(s, " isddd(%v)", n.Isddd)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue