Struct inkwell::debug_info::DebugInfoBuilder[][src]

pub struct DebugInfoBuilder<'ctx> { /* fields omitted */ }
Expand description

A builder object to create debug info metadata. Used along with Builder while producing IR. Created by Module::create_debug_info_builder. See debug_info module level documentation for more.

Implementations

A DIFunction provides an anchor for all debugging information generated for the specified subprogram.

  • scope - Function scope.
  • name - Function name.
  • linkage_name - Mangled function name, if any.
  • file - File where this variable is defined.
  • line_no - Line number.
  • ty - Function type.
  • is_local_to_unit - True if this function is not externally visible.
  • is_definition - True if this is a function definition (“When isDefinition: false, subprograms describe a declaration in the type tree as opposed to a definition of a function”).
  • scope_line - Set to the beginning of the scope this starts
  • flags - E.g.: LLVMDIFlagLValueReference. These flags are used to emit dwarf attributes.
  • is_optimized - True if optimization is ON.

Create a lexical block scope.

Create a file scope.

Create a debug location.

This is supported on crate features llvm7-0 or llvm8-0 or llvm9-0 or llvm10-0 or llvm11-0 or llvm12-0 only.

Create a primitive basic type. encoding is an unsigned int flag (DW_ATE_* enum) defined by the chosen DWARF standard.

This is supported on crate features llvm8-0 or llvm9-0 or llvm10-0 or llvm11-0 or llvm12-0 only.

Create a typedef (alias) of ditype

Create union type of multiple types.

Create a type for a non-static member.

Create a struct type.

Create a function type

This is supported on crate features llvm8-0 or llvm9-0 or llvm10-0 or llvm11-0 or llvm12-0 only.
This is supported on crate features llvm8-0 or llvm9-0 or llvm10-0 or llvm11-0 or llvm12-0 only.

Create function parameter variable.

Create local automatic storage variable.

Insert a variable declaration (llvm.dbg.declare) before a specified instruction.

Insert a variable declaration (llvm.dbg.declare intrinsic) at the end of block

Create an expression

Insert a new llvm.dbg.value intrinsic call before an instruction.

Construct a placeholders derived type to be used when building debug info with circular references.

All placeholders must be replaced before calling finalize().

Deletes a placeholder, replacing all uses of it with another derived type.

Safety:

This and any other copies of this placeholder made by Copy or Clone become dangling pointers after calling this method.

Construct any deferred debug info descriptors. May generate invalid metadata if debug info is incomplete. Module/function verification can then fail.

Call before any kind of code generation (including verification). Can be called more than once.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.