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

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

Required methods

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

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

Creates the function-specific debug context.

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

pub fn dbg_scope_fn(
    &self,
    instance: Instance<'tcx>,
    fn_abi: &FnAbi<'tcx, Ty<'tcx>>,
    maybe_definition_llfn: Option<Self::Function>
) -> Self::DIScope
[src]

pub fn dbg_loc(
    &self,
    scope: Self::DIScope,
    inlined_at: Option<Self::DILocation>,
    span: Span
) -> Self::DILocation
[src]

pub fn extend_scope_to_file(
    &self,
    scope_metadata: Self::DIScope,
    file: &SourceFile
) -> Self::DIScope
[src]

pub fn debuginfo_finalize(&self)[src]

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

Loading content...

Implementors

Loading content...