cmd/link: replace Autom linked list with slice

Change-Id: I939129da0e71a7ccc61bec79515a34f0b1e59502
Reviewed-on: https://go-review.googlesource.com/20162
Reviewed-by: Dave Cheney <dave@cheney.net>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
David Crawshaw 2016-03-02 22:38:42 -05:00
parent 1661493c73
commit 5be961a352
5 changed files with 12 additions and 15 deletions

View file

@ -1589,7 +1589,7 @@ func writelines() {
dt, da int
offs int64
)
for a := s.Autom; a != nil; a = a.Link {
for _, a := range s.Autom {
switch a.Name {
case obj.A_AUTO:
dt = DW_ABRV_AUTO