mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: remove unused Label fields
Updates #16357. Change-Id: I37f04d83134b5e1e7f6ba44eb9a566758ef594d3 Reviewed-on: https://go-review.googlesource.com/29350 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
833ed7c431
commit
9f447c20ef
3 changed files with 0 additions and 23 deletions
|
|
@ -8,9 +8,6 @@ package gc
|
|||
|
||||
import "fmt"
|
||||
|
||||
// TODO: labellist should become part of a "compilation state" for functions.
|
||||
var labellist []*Label
|
||||
|
||||
func Sysfunc(name string) *Node {
|
||||
n := newname(Pkglookup(name, Runtimepkg))
|
||||
n.Class = PFUNC
|
||||
|
|
@ -182,13 +179,6 @@ func moveToHeap(n *Node) {
|
|||
}
|
||||
}
|
||||
|
||||
func clearlabels() {
|
||||
for _, l := range labellist {
|
||||
l.Sym.Label = nil
|
||||
}
|
||||
labellist = labellist[:0]
|
||||
}
|
||||
|
||||
// make a new Node off the books
|
||||
func tempname(nn *Node, t *Type) {
|
||||
if Curfn == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue