DIBuilderExt

Trait DIBuilderExt 

Source
pub(crate) trait DIBuilderExt<'ll> {
    // Required method
    fn as_di_builder(&self) -> &DIBuilder<'ll>;

    // Provided methods
    fn create_expression(&self, addr_ops: &[u64]) -> &'ll Metadata { ... }
    fn create_static_variable(
        &self,
        scope: Option<&'ll Metadata>,
        name: &str,
        linkage_name: &str,
        file: &'ll Metadata,
        line_number: c_uint,
        ty: &'ll Metadata,
        is_local_to_unit: bool,
        val: &'ll Value,
        decl: Option<&'ll Metadata>,
        align: Option<Align>,
    ) -> &'ll Metadata { ... }
}
Expand description

Extension trait for defining safe wrappers and helper methods on &DIBuilder<'ll>, without requiring it to be defined in the same crate.

Required Methods§

Source

fn as_di_builder(&self) -> &DIBuilder<'ll>

Provided Methods§

Source

fn create_expression(&self, addr_ops: &[u64]) -> &'ll Metadata

Source

fn create_static_variable( &self, scope: Option<&'ll Metadata>, name: &str, linkage_name: &str, file: &'ll Metadata, line_number: c_uint, ty: &'ll Metadata, is_local_to_unit: bool, val: &'ll Value, decl: Option<&'ll Metadata>, align: Option<Align>, ) -> &'ll Metadata

Implementors§

Source§

impl<'ll> DIBuilderExt<'ll> for &DIBuilder<'ll>