]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/objfile: make lookupFunc an alias type
authorCherry Zhang <cherryyz@google.com>
Wed, 29 Nov 2017 20:58:43 +0000 (15:58 -0500)
committerCherry Zhang <cherryyz@google.com>
Wed, 29 Nov 2017 22:22:38 +0000 (22:22 +0000)
commita7dcfa6133cac2c1200d8003bae279a062268499
tree1fe07affc83ec63338729b321f59a919c23162a2
parent2f588ff08f0330864b2e8d16e850c51642d9c5ca
cmd/internal/objfile: make lookupFunc an alias type

In the x/arch repo, CL 45098 introduced SymLookup type, replacing
the unnamed function type for lookup functions. This affects the
signature of x86asm.GoSyntax. In particular, it cannot convert
one named type, namely lookupFunc, to the other without an
explicit cast. Make lookupFunc unnamed to fix.

Change-Id: I973300d29ef1dbfdbd7fc2429e89c5849e6a7329
Reviewed-on: https://go-review.googlesource.com/80842
Run-TryBot: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/internal/objfile/disasm.go