]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.regabi] cmd/compile: remove Name.IsDDD, etc
authorMatthew Dempsky <mdempsky@google.com>
Sun, 27 Dec 2020 19:45:57 +0000 (11:45 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 28 Dec 2020 08:08:25 +0000 (08:08 +0000)
These are never used.

Change-Id: I58f7359f20252ca942f59bc7593c615a7b9de105
Reviewed-on: https://go-review.googlesource.com/c/go/+/280514
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/noder/noder.go
src/cmd/compile/internal/typecheck/dcl.go

index 93535f4ceecc495eeee20d8af6a62867dc962e32..cc8e1b4cd19005c9bcadf6e890d8bdd01bdad3a7 100644 (file)
@@ -268,7 +268,6 @@ const (
        nameInlLocal              // PAUTO created by inliner, derived from callee local
        nameOpenDeferSlot         // if temporary var storing info for open-coded defers
        nameLibfuzzerExtraCounter // if PEXTERN should be assigned to __libfuzzer_extra_counters section
-       nameIsDDD                 // is function argument a ...
        nameAlias                 // is type name an alias
 )
 
@@ -286,7 +285,6 @@ func (n *Name) InlFormal() bool             { return n.flags&nameInlFormal != 0
 func (n *Name) InlLocal() bool              { return n.flags&nameInlLocal != 0 }
 func (n *Name) OpenDeferSlot() bool         { return n.flags&nameOpenDeferSlot != 0 }
 func (n *Name) LibfuzzerExtraCounter() bool { return n.flags&nameLibfuzzerExtraCounter != 0 }
-func (n *Name) IsDDD() bool                 { return n.flags&nameIsDDD != 0 }
 
 func (n *Name) SetCaptured(b bool)              { n.flags.set(nameCaptured, b) }
 func (n *Name) setReadonly(b bool)              { n.flags.set(nameReadonly, b) }
@@ -302,7 +300,6 @@ func (n *Name) SetInlFormal(b bool)             { n.flags.set(nameInlFormal, b)
 func (n *Name) SetInlLocal(b bool)              { n.flags.set(nameInlLocal, b) }
 func (n *Name) SetOpenDeferSlot(b bool)         { n.flags.set(nameOpenDeferSlot, b) }
 func (n *Name) SetLibfuzzerExtraCounter(b bool) { n.flags.set(nameLibfuzzerExtraCounter, b) }
-func (n *Name) SetIsDDD(b bool)                 { n.flags.set(nameIsDDD, b) }
 
 // MarkReadonly indicates that n is an ONAME with readonly contents.
 func (n *Name) MarkReadonly() {
index 7c1f7595b3e42efcd73122882461e0840b583dc5..920f4839adfcc3642604496144edd69558078a38 100644 (file)
@@ -1838,7 +1838,6 @@ func oldname(s *types.Sym) ir.Node {
                        c = typecheck.NewName(s)
                        c.Class_ = ir.PAUTOHEAP
                        c.SetIsClosureVar(true)
-                       c.SetIsDDD(n.IsDDD())
                        c.Defn = n
 
                        // Link into list of active closure variables.
index 0da0956c3aebd2f2606a9c2036d05cc3b11f7f7f..36057ba2d1c969fca5d89cfdcc0286c99c367b87 100644 (file)
@@ -447,7 +447,6 @@ func funcarg(n *ir.Field, ctxt ir.Class) {
        name := ir.NewNameAt(n.Pos, n.Sym)
        n.Decl = name
        name.Ntype = n.Ntype
-       name.SetIsDDD(n.IsDDD)
        Declare(name, ctxt)
 
        vargen++
@@ -461,7 +460,6 @@ func funcarg2(f *types.Field, ctxt ir.Class) {
        n := ir.NewNameAt(f.Pos, f.Sym)
        f.Nname = n
        n.SetType(f.Type)
-       n.SetIsDDD(f.IsDDD())
        Declare(n, ctxt)
 }