dwarfgen

package standard library
go1.17.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2022 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbstractFunc

func AbstractFunc(fn *obj.LSym)

Secondary hook for DWARF inlined subroutine generation. This is called late in the compilation when it is determined that we need an abstract function DIE for an inlined routine imported from a previously compiled package.

func Info

func Info(fnsym *obj.LSym, infosym *obj.LSym, curfn interface{}) ([]dwarf.Scope, dwarf.InlCalls)

func RecordFlags

func RecordFlags(flags ...string)

RecordFlags records the specified command-line flags to be placed in the DWARF info.

func RecordPackageName

func RecordPackageName()

RecordPackageName records the name of the package being compiled, so that the linker can save it in the compile unit's DIE.

Types

type ScopeMarker

type ScopeMarker struct {
	// contains filtered or unexported fields
}

A ScopeMarker tracks scope nesting and boundaries for later use during DWARF generation.

func (*ScopeMarker) Pop

func (m *ScopeMarker) Pop(pos src.XPos)

Pop records a transition back to the current scope's parent.

func (*ScopeMarker) Push

func (m *ScopeMarker) Push(pos src.XPos)

Push records a transition to a new child scope of the current scope.

func (*ScopeMarker) Unpush

func (m *ScopeMarker) Unpush()

Unpush removes the current scope, which must be empty.

func (*ScopeMarker) WriteTo

func (m *ScopeMarker) WriteTo(fn *ir.Func)

WriteTo writes the recorded scope marks to the given function, and resets the marker for reuse.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL