[−][src]Trait rustc_codegen_ssa::traits::debuginfo::DebugInfoMethods

pub trait DebugInfoMethods<'tcx>: BackendTypes {
    fn create_vtable_metadata(&self, ty: Ty<'tcx>, vtable: Self::Value);
fn create_function_debug_context(
        &self,
        instance: Instance<'tcx>,
        fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
        llfn: Self::Function,
        mir: &Body<'_>
    ) -> Option<FunctionDebugContext<Self::DIScope>>;
fn extend_scope_to_file(
        &self,
        scope_metadata: Self::DIScope,
        file: &SourceFile,
        defining_crate: CrateNum
    ) -> Self::DIScope;
fn debuginfo_finalize(&self);
fn create_dbg_var(
        &self,
        dbg_context: &FunctionDebugContext<Self::DIScope>,
        variable_name: Symbol,
        variable_type: Ty<'tcx>,
        scope_metadata: Self::DIScope,
        variable_kind: VariableKind,
        span: Span
    ) -> Self::DIVariable; }

Required methods

fn create_vtable_metadata(&self, ty: Ty<'tcx>, vtable: Self::Value)

fn create_function_debug_context(
    &self,
    instance: Instance<'tcx>,
    fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
    llfn: Self::Function,
    mir: &Body<'_>
) -> Option<FunctionDebugContext<Self::DIScope>>

Creates the function-specific debug context.

Returns the FunctionDebugContext for the function which holds state needed for debug info creation, if it is enabled.

fn extend_scope_to_file(
    &self,
    scope_metadata: Self::DIScope,
    file: &SourceFile,
    defining_crate: CrateNum
) -> Self::DIScope

fn debuginfo_finalize(&self)

fn create_dbg_var(
    &self,
    dbg_context: &FunctionDebugContext<Self::DIScope>,
    variable_name: Symbol,
    variable_type: Ty<'tcx>,
    scope_metadata: Self::DIScope,
    variable_kind: VariableKind,
    span: Span
) -> Self::DIVariable

Loading content...

Implementors

Loading content...