mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: don't emit autom's into object file
Don't write Autom records when writing a function to the object file; we no longer need them in the linker for DWARF processing. So as to keep the object file format unchanged, write out a zero-length list of automs to the object, as opposed to removing all references. Updates #34554. Change-Id: I42a1d67207ea7114ae4f3a315cf37effba57f190 Reviewed-on: https://go-review.googlesource.com/c/go/+/197499 Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
parent
e72f002ed0
commit
cdd59205c4
3 changed files with 14 additions and 57 deletions
|
|
@ -211,9 +211,6 @@ const (
|
|||
// A reference to name@GOT(SB) is a reference to the entry in the global offset
|
||||
// table for 'name'.
|
||||
NAME_GOTREF
|
||||
// Indicates auto that was optimized away, but whose type
|
||||
// we want to preserve in the DWARF debug info.
|
||||
NAME_DELETED_AUTO
|
||||
// Indicates that this is a reference to a TOC anchor.
|
||||
NAME_TOCREF
|
||||
)
|
||||
|
|
@ -398,7 +395,6 @@ type FuncInfo struct {
|
|||
Args int32
|
||||
Locals int32
|
||||
Text *Prog
|
||||
Autom []*Auto
|
||||
Autot map[*LSym]struct{}
|
||||
Pcln Pcln
|
||||
InlMarks []InlMark
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue