]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/gc: move intLiteral to gc.Node
authorDave Cheney <dave@cheney.net>
Fri, 18 Sep 2015 08:56:47 +0000 (18:56 +1000)
committerDave Cheney <dave@cheney.net>
Sat, 19 Sep 2015 04:38:02 +0000 (04:38 +0000)
commit3e476827a68a64168f345ae96d2fa1bb80eb6bf4
tree49f71c578f0960252f2df411c99c7015c824b7a9
parentc742ff6adc1487fbdbeca7e71fa61d80bbb41624
cmd/compile/internal/gc: move intLiteral to gc.Node

intLiteral is used by the gins wrappers in arm64, ppc64 and
mips64. Refactor the function to a method on gc.Node and update
the callers to use the common copy.

Change-Id: I2db90d801a9cb18f8526eb921e13daa75ca1cf6f
Reviewed-on: https://go-review.googlesource.com/14744
Reviewed-by: Aram Hăvărneanu <aram@mgk.ro>
Reviewed-by: Dave Cheney <dave@cheney.net>
Run-TryBot: Dave Cheney <dave@cheney.net>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/arm64/gsubr.go
src/cmd/compile/internal/gc/const.go
src/cmd/compile/internal/mips64/gsubr.go
src/cmd/compile/internal/ppc64/gsubr.go