mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/dwarfgen: remove unversion
The unified export data format doesn't rely on embedding version numbers in local variable names anymore, so there's no need to look for them. While here, simplify the checking for "~r" or "~b" to just "~", because the next commit is going to eliminate "~b", but introduce "~p". Change-Id: I3ac73150ee561c66356a0c4aee5290b44a4893ee Reviewed-on: https://go-review.googlesource.com/c/go/+/527695 Auto-Submit: Matthew Dempsky <mdempsky@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Reviewed-by: Than McIntosh <thanm@google.com>
This commit is contained in:
parent
4b17b36b3f
commit
661e3be497
2 changed files with 4 additions and 15 deletions
|
|
@ -323,7 +323,7 @@ func preInliningDcls(fnsym *obj.LSym) []*ir.Name {
|
|||
c := n.Sym().Name[0]
|
||||
// Avoid reporting "_" parameters, since if there are more than
|
||||
// one, it can result in a collision later on, as in #23179.
|
||||
if unversion(n.Sym().Name) == "_" || c == '.' || n.Type().IsUntyped() {
|
||||
if n.Sym().Name == "_" || c == '.' || n.Type().IsUntyped() {
|
||||
continue
|
||||
}
|
||||
rdcl = append(rdcl, n)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue