diff options
Diffstat (limited to 'src/cmd/internal/obj/link.go')
| -rw-r--r-- | src/cmd/internal/obj/link.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cmd/internal/obj/link.go b/src/cmd/internal/obj/link.go index f13f9b4c70..0b7878656c 100644 --- a/src/cmd/internal/obj/link.go +++ b/src/cmd/internal/obj/link.go @@ -1001,6 +1001,11 @@ type RegSpill struct { Spill, Unspill As } +// A Func represents a Go function. If non-nil, it must be a *ir.Func. +type Func interface { + Pos() src.XPos +} + // Link holds the context for writing object code from a compiler // to be linker input or for reading that input into the linker. type Link struct { @@ -1030,7 +1035,7 @@ type Link struct { Imports []goobj.ImportedPkg DiagFunc func(string, ...interface{}) DiagFlush func() - DebugInfo func(fn *LSym, info *LSym, curfn interface{}) ([]dwarf.Scope, dwarf.InlCalls, src.XPos) // if non-nil, curfn is a *ir.Func + DebugInfo func(fn *LSym, info *LSym, curfn Func) ([]dwarf.Scope, dwarf.InlCalls) GenAbstractFunc func(fn *LSym) Errors int |
