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 ¶
- type Builder
- func (b *Builder) CompileUnit(filename, dir string) llvm.Metadata
- func (b *Builder) CreateArrayType(desc llvm.DIArrayType) llvm.Metadata
- func (b *Builder) CreateAutoVariable(scope llvm.Metadata, desc llvm.DIAutoVariable) llvm.Metadata
- func (b *Builder) CreateBasicType(desc llvm.DIBasicType) llvm.Metadata
- func (b *Builder) CreateExpression(ops []uint64) llvm.Metadata
- func (b *Builder) CreateFunction(scope llvm.Metadata, desc llvm.DIFunction) llvm.Metadata
- func (b *Builder) CreateGlobalVariableExpression(scope llvm.Metadata, desc llvm.DIGlobalVariableExpression) llvm.Metadata
- func (b *Builder) CreateLexicalBlock(scope llvm.Metadata, desc llvm.DILexicalBlock) llvm.Metadata
- func (b *Builder) CreateMemberType(scope llvm.Metadata, desc llvm.DIMemberType) llvm.Metadata
- func (b *Builder) CreateParameterVariable(scope llvm.Metadata, desc llvm.DIParameterVariable) llvm.Metadata
- func (b *Builder) CreatePointerType(desc llvm.DIPointerType) llvm.Metadata
- func (b *Builder) CreateReplaceableCompositeType(scope llvm.Metadata, desc llvm.DIReplaceableCompositeType) llvm.Metadata
- func (b *Builder) CreateStructType(scope llvm.Metadata, desc llvm.DIStructType) llvm.Metadata
- func (b *Builder) CreateSubroutineType(desc llvm.DISubroutineType) llvm.Metadata
- func (b *Builder) CreateTypedef(desc llvm.DITypedef) llvm.Metadata
- func (b *Builder) File(filename string) llvm.Metadata
- func (b *Builder) Finalize()
- func (b *Builder) InsertDeclareAtEnd(value llvm.Value, variable, expression llvm.Metadata, loc llvm.DebugLoc, ...)
- func (b *Builder) InsertValueAtEnd(value llvm.Value, variable, expression llvm.Metadata, loc llvm.DebugLoc, ...)
- type Config
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 ¶
New creates a debug metadata builder and installs the module metadata LLVM requires for DWARF emission.
func (*Builder) CompileUnit ¶
CompileUnit creates this module's compile unit.
func (*Builder) CreateArrayType ¶
func (b *Builder) CreateArrayType(desc llvm.DIArrayType) llvm.Metadata
func (*Builder) CreateAutoVariable ¶
func (*Builder) CreateBasicType ¶
func (b *Builder) CreateBasicType(desc llvm.DIBasicType) llvm.Metadata
func (*Builder) CreateFunction ¶
func (*Builder) CreateGlobalVariableExpression ¶
func (*Builder) CreateLexicalBlock ¶
func (*Builder) CreateMemberType ¶
func (*Builder) CreateParameterVariable ¶
func (*Builder) CreatePointerType ¶
func (b *Builder) CreatePointerType(desc llvm.DIPointerType) llvm.Metadata
func (*Builder) CreateReplaceableCompositeType ¶
func (*Builder) CreateStructType ¶
func (*Builder) CreateSubroutineType ¶
func (b *Builder) CreateSubroutineType(desc llvm.DISubroutineType) llvm.Metadata
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.