Trait HasDebugLoc

Source
pub trait HasDebugLoc {
    // Required method
    fn get_debug_loc(&self) -> &Option<DebugLoc>;
}

Required Methods§

Source

fn get_debug_loc(&self) -> &Option<DebugLoc>

Returns the DebugLoc associated with the given Instruction, Terminator, GlobalVariable, or Function; or None if it doesn’t have a DebugLoc.

Reasons something might not have a DebugLoc include: (1) the file was compiled without debuginfo; (2) for an Instruction, it might not directly correspond to any source line. For instance, it may be just setting up the stack frame for a function.

Implementors§

Source§

impl HasDebugLoc for Instruction

Source§

impl HasDebugLoc for Terminator

Source§

impl HasDebugLoc for Function

Source§

impl HasDebugLoc for AShr

Source§

impl HasDebugLoc for Add

Source§

impl HasDebugLoc for AddrSpaceCast

Source§

impl HasDebugLoc for Alloca

Source§

impl HasDebugLoc for And

Source§

impl HasDebugLoc for AtomicRMW

Source§

impl HasDebugLoc for BitCast

Source§

impl HasDebugLoc for Call

Source§

impl HasDebugLoc for CatchPad

Source§

impl HasDebugLoc for CleanupPad

Source§

impl HasDebugLoc for CmpXchg

Source§

impl HasDebugLoc for ExtractElement

Source§

impl HasDebugLoc for ExtractValue

Source§

impl HasDebugLoc for FAdd

Source§

impl HasDebugLoc for FCmp

Source§

impl HasDebugLoc for FDiv

Source§

impl HasDebugLoc for FMul

Source§

impl HasDebugLoc for FNeg

Source§

impl HasDebugLoc for FPExt

Source§

impl HasDebugLoc for FPToSI

Source§

impl HasDebugLoc for FPToUI

Source§

impl HasDebugLoc for FPTrunc

Source§

impl HasDebugLoc for FRem

Source§

impl HasDebugLoc for FSub

Source§

impl HasDebugLoc for Fence

Source§

impl HasDebugLoc for Freeze

Source§

impl HasDebugLoc for GetElementPtr

Source§

impl HasDebugLoc for ICmp

Source§

impl HasDebugLoc for InsertElement

Source§

impl HasDebugLoc for InsertValue

Source§

impl HasDebugLoc for IntToPtr

Source§

impl HasDebugLoc for LShr

Source§

impl HasDebugLoc for LandingPad

Source§

impl HasDebugLoc for Load

Source§

impl HasDebugLoc for Mul

Source§

impl HasDebugLoc for Or

Source§

impl HasDebugLoc for Phi

Source§

impl HasDebugLoc for PtrToInt

Source§

impl HasDebugLoc for SDiv

Source§

impl HasDebugLoc for SExt

Source§

impl HasDebugLoc for SIToFP

Source§

impl HasDebugLoc for SRem

Source§

impl HasDebugLoc for Select

Source§

impl HasDebugLoc for Shl

Source§

impl HasDebugLoc for ShuffleVector

Source§

impl HasDebugLoc for Store

Source§

impl HasDebugLoc for Sub

Source§

impl HasDebugLoc for Trunc

Source§

impl HasDebugLoc for UDiv

Source§

impl HasDebugLoc for UIToFP

Source§

impl HasDebugLoc for URem

Source§

impl HasDebugLoc for VAArg

Source§

impl HasDebugLoc for Xor

Source§

impl HasDebugLoc for ZExt

Source§

impl HasDebugLoc for GlobalVariable

Source§

impl HasDebugLoc for Br

Source§

impl HasDebugLoc for CallBr

Source§

impl HasDebugLoc for CatchRet

Source§

impl HasDebugLoc for CatchSwitch

Source§

impl HasDebugLoc for CleanupRet

Source§

impl HasDebugLoc for CondBr

Source§

impl HasDebugLoc for IndirectBr

Source§

impl HasDebugLoc for Invoke

Source§

impl HasDebugLoc for Resume

Source§

impl HasDebugLoc for Ret

Source§

impl HasDebugLoc for Switch

Source§

impl HasDebugLoc for Unreachable