// its corresponding 'abstract' DIE (containing location-independent
// attributes such as name, type, etc). Inlined subroutine DIEs can
// have other inlined subroutine DIEs as children.
-func putInlinedFunc(ctxt Context, s *FnState, callersym Sym, callIdx int) error {
+func putInlinedFunc(ctxt Context, s *FnState, callIdx int) error {
ic := s.InlCalls.Calls[callIdx]
callee := ic.AbsFunSym
Uleb128put(ctxt, s.Info, int64(abbrev))
if logDwarf {
- ctxt.Logf("putInlinedFunc(caller=%v,callee=%v,abbrev=%d)\n", callersym, callee, abbrev)
+ ctxt.Logf("putInlinedFunc(callee=%v,abbrev=%d)\n", callee, abbrev)
}
// Abstract origin.
// Children of this inline.
for _, sib := range inlChildren(callIdx, &s.InlCalls) {
- absfn := s.InlCalls.Calls[sib].AbsFunSym
- err := putInlinedFunc(ctxt, s, absfn, sib)
+ err := putInlinedFunc(ctxt, s, sib)
if err != nil {
return err
}
// Inlined subroutines.
for _, sib := range inlChildren(-1, &s.InlCalls) {
- absfn := s.InlCalls.Calls[sib].AbsFunSym
- err := putInlinedFunc(ctxt, s, absfn, sib)
+ err := putInlinedFunc(ctxt, s, sib)
if err != nil {
return err
}
// Inlined subroutines.
for _, sib := range inlChildren(-1, &s.InlCalls) {
- absfn := s.InlCalls.Calls[sib].AbsFunSym
- err := putInlinedFunc(ctxt, s, absfn, sib)
+ err := putInlinedFunc(ctxt, s, sib)
if err != nil {
return err
}