]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: unify Setuintxx and WriteInt
authorJosh Bleecher Snyder <josharian@gmail.com>
Sun, 16 Apr 2017 15:11:38 +0000 (08:11 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Mon, 17 Apr 2017 03:15:02 +0000 (03:15 +0000)
commit89a355c9306800df2062f9fb590cba2c2281948a
treeefad6a6686bb390ea4182fb4d79f5ec84d90e132
parentbb215de8a67bc294d933df0413376be7e973d404
cmd/internal/obj: unify Setuintxx and WriteInt

They do basically the same work.

Setuintxx was only used in a single place,
so eliminate it in favor of WriteInt.

duintxxLSym's alignment rounding was not used in practice;
change it into alignment assertion.

Passes toolstash-check. No compiler performance changes.

Change-Id: I0f7410cf2ccffbdc02ad796eaf973ee6a83074f8
Reviewed-on: https://go-review.googlesource.com/40863
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/obj.go
src/cmd/internal/obj/data.go