mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/ir: remove Func.ReflectMethod
This flag doesn't serve any purpose anymore. The only place that it's currently set happens after it's checked. Change-Id: Idb6455416f68e502e0b0b1d80e2d6bb5956ee45b Reviewed-on: https://go-review.googlesource.com/c/go/+/528435 Reviewed-by: Than McIntosh <thanm@google.com> Auto-Submit: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
parent
d2e2da83b1
commit
a03f1aeb55
3 changed files with 4 additions and 12 deletions
|
|
@ -1033,8 +1033,6 @@ func usemethod(n *ir.CallExpr) {
|
|||
r.Type = objabi.R_USENAMEDMETHOD
|
||||
r.Sym = staticdata.StringSymNoCommon(name)
|
||||
} else {
|
||||
ir.CurFunc.SetReflectMethod(true)
|
||||
// The LSym is initialized at this point. We need to set the attribute on the LSym.
|
||||
ir.CurFunc.LSym.Set(obj.AttrReflectMethod, true)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue