debuginfo

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: Apache-2.0 Imports: 3 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package debuginfo owns the LLVM debug metadata builder and its lifecycle. Source-language type layout and SSA value tracking belong to the caller.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

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

Builder is a package-local owner of an LLVM DIBuilder. Finalize must be called before the module is verified, optimized, serialized, or disposed.

func New

func New(module llvm.Module, config Config) *Builder

New creates a debug metadata builder and installs the module metadata LLVM requires for DWARF emission.

func (*Builder) CompileUnit

func (b *Builder) CompileUnit(filename, dir string) llvm.Metadata

CompileUnit creates this module's compile unit.

func (*Builder) CreateArrayType

func (b *Builder) CreateArrayType(desc llvm.DIArrayType) llvm.Metadata

func (*Builder) CreateAutoVariable

func (b *Builder) CreateAutoVariable(scope llvm.Metadata, desc llvm.DIAutoVariable) llvm.Metadata

func (*Builder) CreateBasicType

func (b *Builder) CreateBasicType(desc llvm.DIBasicType) llvm.Metadata

func (*Builder) CreateExpression

func (b *Builder) CreateExpression(ops []uint64) llvm.Metadata

func (*Builder) CreateFunction

func (b *Builder) CreateFunction(scope llvm.Metadata, desc llvm.DIFunction) llvm.Metadata

func (*Builder) CreateGlobalVariableExpression

func (b *Builder) CreateGlobalVariableExpression(scope llvm.Metadata, desc llvm.DIGlobalVariableExpression) llvm.Metadata

func (*Builder) CreateLexicalBlock

func (b *Builder) CreateLexicalBlock(scope llvm.Metadata, desc llvm.DILexicalBlock) llvm.Metadata

func (*Builder) CreateMemberType

func (b *Builder) CreateMemberType(scope llvm.Metadata, desc llvm.DIMemberType) llvm.Metadata

func (*Builder) CreateParameterVariable

func (b *Builder) CreateParameterVariable(scope llvm.Metadata, desc llvm.DIParameterVariable) llvm.Metadata

func (*Builder) CreatePointerType

func (b *Builder) CreatePointerType(desc llvm.DIPointerType) llvm.Metadata

func (*Builder) CreateReplaceableCompositeType

func (b *Builder) CreateReplaceableCompositeType(scope llvm.Metadata, desc llvm.DIReplaceableCompositeType) llvm.Metadata

func (*Builder) CreateStructType

func (b *Builder) CreateStructType(scope llvm.Metadata, desc llvm.DIStructType) llvm.Metadata

func (*Builder) CreateSubroutineType

func (b *Builder) CreateSubroutineType(desc llvm.DISubroutineType) llvm.Metadata

func (*Builder) CreateTypedef

func (b *Builder) CreateTypedef(desc llvm.DITypedef) llvm.Metadata

func (*Builder) File

func (b *Builder) File(filename string) llvm.Metadata

File returns one metadata node per cleaned source path.

func (*Builder) Finalize

func (b *Builder) Finalize()

Finalize resolves temporary metadata and releases the underlying DIBuilder. It is idempotent so callers can safely defer it across error paths.

func (*Builder) InsertDeclareAtEnd

func (b *Builder) InsertDeclareAtEnd(value llvm.Value, variable, expression llvm.Metadata, loc llvm.DebugLoc, block llvm.BasicBlock)

func (*Builder) InsertValueAtEnd

func (b *Builder) InsertValueAtEnd(value llvm.Value, variable, expression llvm.Metadata, loc llvm.DebugLoc, block llvm.BasicBlock)

type Config

type Config struct {
	Producer     string
	Optimized    bool
	EmitCodeView bool
}

Config describes properties of the generated debug information. Optimized reports what the compilation pipeline does; it does not select any pass.

Jump to

Keyboard shortcuts

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