From: Dave Cheney Date: Thu, 5 Mar 2015 06:33:19 +0000 (+1100) Subject: cmd/internal/gc: remove Node.Builtin X-Git-Tag: go1.5beta1~1676 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4b6337813dca10f9f1822083f3a03e2a7b8ed9e1;p=gostls13.git cmd/internal/gc: remove Node.Builtin 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 --- diff --git a/src/cmd/internal/gc/lex.go b/src/cmd/internal/gc/lex.go index 6ff515e7b3..e712752337 100644 --- a/src/cmd/internal/gc/lex.go +++ b/src/cmd/internal/gc/lex.go @@ -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 } } diff --git a/src/cmd/internal/gc/syntax.go b/src/cmd/internal/gc/syntax.go index 7584af2d77..9b2f9aeaef 100644 --- a/src/cmd/internal/gc/syntax.go +++ b/src/cmd/internal/gc/syntax.go @@ -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