debug

package
v0.0.0-...-4b1e478 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2015 License: BSD-3-Clause, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DIBuilder

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

DIBuilder builds debug metadata for Go programs.

func NewDIBuilder

func NewDIBuilder(sizes types.Sizes, module llvm.Module, fset *token.FileSet, prefixMaps []PrefixMap) *DIBuilder

NewDIBuilder creates a new debug information builder.

func (*DIBuilder) DIType

func (d *DIBuilder) DIType(t types.Type) llvm.Value

DIType maps a Go type to DIType debug metadata value.

func (*DIBuilder) Declare

func (d *DIBuilder) Declare(b llvm.Builder, v ssa.Value, llv llvm.Value, paramIndex int)

Declare creates an llvm.dbg.declare call for the specified function parameter or local variable.

func (*DIBuilder) Destroy

func (d *DIBuilder) Destroy()

Destroy destroys the DIBuilder.

func (*DIBuilder) Finalize

func (d *DIBuilder) Finalize()

Finalize must be called after all compilation units are translated, generating the final debug metadata for the module.

func (*DIBuilder) PopFunction

func (d *DIBuilder) PopFunction()

PopFunction pops the previously pushed function off the scope stack.

func (*DIBuilder) PushFunction

func (d *DIBuilder) PushFunction(fnptr llvm.Value, sig *types.Signature, pos token.Pos)

PushFunction creates debug metadata for the specified function, and pushes it onto the scope stack.

func (*DIBuilder) SetLocation

func (d *DIBuilder) SetLocation(b llvm.Builder, pos token.Pos)

SetLocation sets the current debug location.

func (*DIBuilder) Value

func (d *DIBuilder) Value(b llvm.Builder, v ssa.Value, llv llvm.Value, paramIndex int)

Value creates an llvm.dbg.value call for the specified register value.

type PrefixMap

type PrefixMap struct {
	Source, Replacement string
}

Jump to

Keyboard shortcuts

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