diff options
| author | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-22 10:17:46 -0700 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2017-03-22 17:33:27 +0000 |
| commit | cfb3c8df62deb607726fbd8a7a90f4e67f990a27 (patch) | |
| tree | de4a520459d4c44391cd03fdb9653b9c33e9b2d2 /src/cmd/internal/obj/link.go | |
| parent | a470e5d4b823c7a3ada993d2e76f191d4c51555a (diff) | |
| download | go-cfb3c8df62deb607726fbd8a7a90f4e67f990a27.tar.xz | |
cmd/internal/obj: eliminate Link.Asmode
Asmode is always set to p.Mode,
which is always set based on the arch family.
Instead, use the arch family directly.
Passes toolstash-check -all.
Change-Id: Id982472dcc8eeb6dd22cac5ad2f116b54a44caee
Reviewed-on: https://go-review.googlesource.com/38451
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/cmd/internal/obj/link.go')
| -rw-r--r-- | src/cmd/internal/obj/link.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/link.go b/src/cmd/internal/obj/link.go index 8d9e4e3476..640716c171 100644 --- a/src/cmd/internal/obj/link.go +++ b/src/cmd/internal/obj/link.go @@ -740,7 +740,6 @@ type Link struct { Rep int Repn int Lock int - Asmode int AsmBuf AsmBuf // instruction buffer for x86 Instoffset int64 Autosize int32 |
