[][src]Trait llvm_ir::debugloc::HasDebugLoc

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

Required methods

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.

Loading content...

Implementors

impl HasDebugLoc for Instruction[src]

impl HasDebugLoc for Terminator[src]

impl HasDebugLoc for Function[src]

impl HasDebugLoc for AShr[src]

impl HasDebugLoc for Add[src]

impl HasDebugLoc for AddrSpaceCast[src]

impl HasDebugLoc for Alloca[src]

impl HasDebugLoc for And[src]

impl HasDebugLoc for AtomicRMW[src]

impl HasDebugLoc for BitCast[src]

impl HasDebugLoc for Call[src]

impl HasDebugLoc for CatchPad[src]

impl HasDebugLoc for CleanupPad[src]

impl HasDebugLoc for CmpXchg[src]

impl HasDebugLoc for ExtractElement[src]

impl HasDebugLoc for ExtractValue[src]

impl HasDebugLoc for FAdd[src]

impl HasDebugLoc for FCmp[src]

impl HasDebugLoc for FDiv[src]

impl HasDebugLoc for FMul[src]

impl HasDebugLoc for FNeg[src]

impl HasDebugLoc for FPExt[src]

impl HasDebugLoc for FPToSI[src]

impl HasDebugLoc for FPToUI[src]

impl HasDebugLoc for FPTrunc[src]

impl HasDebugLoc for FRem[src]

impl HasDebugLoc for FSub[src]

impl HasDebugLoc for Fence[src]

impl HasDebugLoc for Freeze[src]

impl HasDebugLoc for GetElementPtr[src]

impl HasDebugLoc for ICmp[src]

impl HasDebugLoc for InsertElement[src]

impl HasDebugLoc for InsertValue[src]

impl HasDebugLoc for IntToPtr[src]

impl HasDebugLoc for LShr[src]

impl HasDebugLoc for LandingPad[src]

impl HasDebugLoc for Load[src]

impl HasDebugLoc for Mul[src]

impl HasDebugLoc for Or[src]

impl HasDebugLoc for Phi[src]

impl HasDebugLoc for PtrToInt[src]

impl HasDebugLoc for SDiv[src]

impl HasDebugLoc for SExt[src]

impl HasDebugLoc for SIToFP[src]

impl HasDebugLoc for SRem[src]

impl HasDebugLoc for Select[src]

impl HasDebugLoc for Shl[src]

impl HasDebugLoc for ShuffleVector[src]

impl HasDebugLoc for Store[src]

impl HasDebugLoc for Sub[src]

impl HasDebugLoc for Trunc[src]

impl HasDebugLoc for UDiv[src]

impl HasDebugLoc for UIToFP[src]

impl HasDebugLoc for URem[src]

impl HasDebugLoc for VAArg[src]

impl HasDebugLoc for Xor[src]

impl HasDebugLoc for ZExt[src]

impl HasDebugLoc for GlobalVariable[src]

impl HasDebugLoc for Br[src]

impl HasDebugLoc for CallBr[src]

impl HasDebugLoc for CatchRet[src]

impl HasDebugLoc for CatchSwitch[src]

impl HasDebugLoc for CleanupRet[src]

impl HasDebugLoc for CondBr[src]

impl HasDebugLoc for IndirectBr[src]

impl HasDebugLoc for Invoke[src]

impl HasDebugLoc for Resume[src]

impl HasDebugLoc for Ret[src]

impl HasDebugLoc for Switch[src]

impl HasDebugLoc for Unreachable[src]

Loading content...