It is no longer used. The only remaining use is in generating
Plan 9 debug info, which is already not supported.
Change-Id: Ia023d6f2fa7d57b97ba861ce464e2eec8ac2d1f5
Reviewed-on: https://go-review.googlesource.com/c/go/+/228142
Reviewed-by: Than McIntosh <thanm@google.com>
for _, s := range ctxt.Textp {
put(ctxt, s, s.Name, TextSym, s.Value, s.Gotype)
-
- locals := int32(0)
- if s.FuncInfo != nil {
- locals = s.FuncInfo.Locals
- }
- // NOTE(ality): acid can't produce a stack trace without .frame symbols
- put(ctxt, nil, ".frame", FrameSym, int64(locals)+int64(ctxt.Arch.PtrSize), nil)
-
- if s.FuncInfo == nil {
- continue
- }
}
if ctxt.Debugvlog != 0 || *flagN {
_32bit uintptr // size on 32bit platforms
_64bit uintptr // size on 64bit platforms
}{
- {Symbol{}, 108, 176},
+ {Symbol{}, 104, 168},
}
for _, tt := range tests {
File string // actually package!
auxinfo *AuxSymbol
Sect *Section
- FuncInfo *FuncInfo
Unit *CompilationUnit
// P contains the raw symbol data.
P []byte
return l
}
-type FuncInfo struct {
- Args int32
- Locals int32
- Pcsp Pcdata
- Pcfile Pcdata
- Pcline Pcdata
- Pcinline Pcdata
- Pcdata []Pcdata
- Funcdata []*Symbol
- Funcdataoff []int64
- File []*Symbol
- InlTree []InlinedCall
-}
-
-// InlinedCall is a node in a local inlining tree (FuncInfo.InlTree).
-type InlinedCall struct {
- Parent int32 // index of parent in InlTree
- File *Symbol // file of the inlined call
- Line int32 // line number of the inlined call
- Func string // name of the function that was inlined
- ParentPC int32 // PC of the instruction just before the inlined body (offset from function start)
-}
-
type Pcdata struct {
P []byte
}