]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: small cleanup to syslook calls
authorMatthew Dempsky <mdempsky@google.com>
Fri, 4 Mar 2016 15:55:39 +0000 (07:55 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Fri, 4 Mar 2016 17:44:02 +0000 (17:44 +0000)
commit7f13fbf76656790187c53c05d1b3d00c68d844a6
tree1a9745a575bcb037f6f3c82d4384185843be2c7e
parent646939c0e3b68c24908692696356a0b048a6ba69
cmd/compile: small cleanup to syslook calls

Passing copy==1 to syslook is only necessary to support subsequent
calls to substArgTypes.  typ2Itab and concatstring* don't have "any"
parameters, so no point in deep copying their function signatures at
every call site.

For a couple other syslook calls (makemap and conv[IET]2[IET]), move
them closer to their corresponding substArgTypes calls so it's easier
to see that all syslook(fn, 1) calls are necessary.

Change-Id: I4a0588ab2b8b5b8ce7a0a44b24c8cf8fda489af6
Reviewed-on: https://go-review.googlesource.com/20215
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/compile/internal/gc/walk.go