]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: eliminate Ctxt.Mode
authorJosh Bleecher Snyder <josharian@gmail.com>
Wed, 22 Mar 2017 05:23:45 +0000 (22:23 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Wed, 22 Mar 2017 17:27:43 +0000 (17:27 +0000)
commita470e5d4b823c7a3ada993d2e76f191d4c51555a
tree703be139298612c600ab60760b5822e6977725fd
parent0a94daa3789a52bea9856f9f8b3fa32477eab28a
cmd/internal/obj: eliminate Ctxt.Mode

Replace Ctxt.Mode with a method, Ctxt.RegWidth,
which is calculated directly off the arch info.

I believe that Prog.Mode can also be removed; future CL.

This is a step towards obj.Link immutability.

Passes toolstash-check -all.

Updates #15756

Change-Id: Ifd7f8f6ed0a2fdc032d1dd306fcd695a14aa5bc5
Reviewed-on: https://go-review.googlesource.com/38446
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/obj/link.go
src/cmd/internal/obj/mips/a.out.go
src/cmd/internal/obj/mips/asm0.go
src/cmd/internal/obj/mips/obj0.go
src/cmd/internal/obj/x86/asm6.go
src/cmd/internal/obj/x86/obj6.go
src/cmd/internal/sys/arch.go