Module dwarf

Module dwarf 

Source
Expand description

DWARF / .eh_frame emission helpers shared by the object-based compiler backends (Cranelift and Singlepass).

Each compiled function is emitted into its own relocatable object file. This module provides the writers used to serialize the per-function .eh_frame unwind tables and the DWARF line program into those objects. The recorded relocations are resolved against the function’s own text symbol.

Structs§

DebugRelocation 🔒
DebugWriter 🔒
DwarfState
DWARF debug info state built incrementally during codegen.
EhRelocation
A relocation recorded while serializing the .eh_frame section.
WriterRelocate
A gimli [Writer] for the .eh_frame section that records the relocations required against the function symbol, the personality routine and the LSDA.

Enums§

DebugRelocationTarget 🔒
EhTarget
The symbolic target of an .eh_frame relocation. The gimli Address symbol field is used as a discriminant value (see WriterRelocate).

Functions§

init_dwarf_unit
Initialize DWARF debug info for a function. Begins the line program sequence and sets up CU attributes.