]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: get rid of unused Name.Method field
authorMatthew Dempsky <mdempsky@google.com>
Tue, 1 Nov 2016 22:33:40 +0000 (15:33 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 1 Nov 2016 22:44:31 +0000 (22:44 +0000)
It's never set anywhere, and even if it was, it would just Fatalf.

Change-Id: I84ade6d2068c623a8c85f84d8cdce38984996ddd
Reviewed-on: https://go-review.googlesource.com/32489
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/compile/internal/gc/gsubr.go
src/cmd/compile/internal/gc/syntax.go

index d1c012baeda0024c5dc4bb721510f9bba5483ba1..1e8636347a6ef81e64cf1ddcc3f3d2d9c5d70bde 100644 (file)
@@ -136,9 +136,6 @@ func Naddr(a *obj.Addr, n *Node) {
        if s == nil {
                Fatalf("naddr: nil sym %v", n)
        }
-       if n.Name.Method && n.Type != nil && n.Type.Sym != nil && n.Type.Sym.Pkg != nil {
-               Fatalf("naddr: weird method %v", n)
-       }
 
        a.Type = obj.TYPE_MEM
        switch n.Class {
index 804204589b91aca0af8a342ecd0ed27674837f1e..8b06d3aba8dd68215ed1eaf4c459f5a26eac7bac 100644 (file)
@@ -191,7 +191,6 @@ type Name struct {
        Decldepth int32  // declaration loop depth, increased for every loop or label
        Vargen    int32  // unique name for ONAME within a function.  Function outputs are numbered starting at one.
        Funcdepth int32
-       Method    bool // OCALLMETH name
        Readonly  bool
        Captured  bool // is the variable captured by a closure
        Byval     bool // is the variable captured by value or by reference