]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/internal/gc: remove Node.Builtin
authorDave Cheney <dave@cheney.net>
Thu, 5 Mar 2015 06:33:19 +0000 (17:33 +1100)
committerDave Cheney <dave@cheney.net>
Fri, 6 Mar 2015 06:36:26 +0000 (06:36 +0000)
Node.Builtin was occasionally set to 1, but never read.

Change-Id: Ia8a76bccc79b0f211296d50bd419860b13077ba5
Reviewed-on: https://go-review.googlesource.com/6808
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/internal/gc/lex.go
src/cmd/internal/gc/syntax.go

index 6ff515e7b3ec3d8edfb24d75a556a5cb55b89505..e712752337aeb4318804159b52c826fc72036040 100644 (file)
@@ -2502,7 +2502,6 @@ func lexinit() {
                        s1.Def = Nod(ONAME, nil, nil)
                        s1.Def.Sym = s1
                        s1.Def.Etype = uint8(etype)
-                       s1.Def.Builtin = 1
                }
        }
 
@@ -2630,7 +2629,6 @@ func lexfini() {
                        s.Def = Nod(ONAME, nil, nil)
                        s.Def.Sym = s
                        s.Def.Etype = uint8(etype)
-                       s.Def.Builtin = 1
                        s.Origpkg = builtinpkg
                }
        }
index 7584af2d77e98a8277ac2744484d00f1d441f987..9b2f9aeaef840babf28b2b5917431f67a474e2b2 100644 (file)
@@ -37,7 +37,6 @@ type Node struct {
        Diag           uint8 // already printed error about this
        Noescape       bool  // func arguments do not escape
        Nosplit        bool  // func should not execute on separate stack
-       Builtin        uint8 // built-in name, like len or close
        Nowritebarrier bool  // emit compiler error instead of write barrier
        Walkdef        uint8
        Typecheck      uint8