]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: cleanup gdata slightly
authorMatthew Dempsky <mdempsky@google.com>
Wed, 19 Oct 2016 20:13:31 +0000 (13:13 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Tue, 25 Oct 2016 17:12:08 +0000 (17:12 +0000)
commita2f77e9ef8ba2e956453ad0dda1ebdf4ae7c4fdb
tree9b8a3af9488d1cf2b11aa861140e6328cfed1fa6
parent213ee3d20ed35bf1bce8bb3e93fd7b0fca562536
cmd/compile: cleanup gdata slightly

In sinit.go, gdata can already handle strings and complex, so no
reason to handle them separately.

In obj.go, inline gdatastring and gdatacomplex into gdata, since it's
the only caller. Allows extracting out the common Linksym calls.

Passes toolstash -cmp.

Change-Id: I3cb18d9b4206a8a269c36e0d30a345d8e6caba1f
Reviewed-on: https://go-review.googlesource.com/31498
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
src/cmd/compile/internal/gc/obj.go
src/cmd/compile/internal/gc/sinit.go