aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/ld/deadcode.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2019-09-26 10:01:42 -0400
committerThan McIntosh <thanm@google.com>2019-09-27 13:59:05 +0000
commit70a1efbb5c2f6b7dd355cfd905ffdd13f35ac756 (patch)
tree865ef645a481783e8ca174e53257ab5a57e251b5 /src/cmd/link/internal/ld/deadcode.go
parentcdd59205c48a4504925b1d65fdb68ff1f1250870 (diff)
downloadgo-70a1efbb5c2f6b7dd355cfd905ffdd13f35ac756.tar.xz
cmd/link: remove reading/processing of function Autom records
Remove linker reading and processing of automs (no longer needed, now that the compiler is emitting R_USETYPE relocations on functions). So as to avoid changing the object file format, the object still contains a count of automs, but this count is required to be zero. Updates #34554. Change-Id: I10230e191057c5c5705541eeb06f747d5f73c42d Reviewed-on: https://go-review.googlesource.com/c/go/+/197500 Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/cmd/link/internal/ld/deadcode.go')
-rw-r--r--src/cmd/link/internal/ld/deadcode.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/cmd/link/internal/ld/deadcode.go b/src/cmd/link/internal/ld/deadcode.go
index 418703cb2f..c880c0da01 100644
--- a/src/cmd/link/internal/ld/deadcode.go
+++ b/src/cmd/link/internal/ld/deadcode.go
@@ -270,12 +270,6 @@ func (d *deadcodepass) flood() {
if d.ctxt.Debugvlog > 1 {
d.ctxt.Logf("marktext %s\n", s.Name)
}
- if s.FuncInfo != nil {
- for _, a := range s.FuncInfo.Autom {
- d.mark(a.Gotype, s)
- }
- }
-
}
if strings.HasPrefix(s.Name, "type.") && s.Name[5] != '.' {