ΒΆLLVMValueRef LLVMDIBuilderInsertDeclareAtEnd(
    LLVMDIBuilderRef Builder,
    LLVMValueRef Storage,
    LLVMMetadataRef VarInfo,
    LLVMMetadataRef Expr,
    LLVMMetadataRef DebugLoc,
    LLVMBasicBlockRef Block)

Description

Insert a new llvm.dbg.declare intrinsic call at the end of the given basic block. If the basic block has a terminator instruction, the intrinsic is inserted before that terminator instruction.

Declared at: llvm/include/llvm-c/DebugInfo.h:1258

Parameters

LLVMDIBuilderRef Builder
The DIBuilder.
LLVMValueRef Storage
The storage of the variable to declare.
LLVMMetadataRef VarInfo
The variable's debug info descriptor.
LLVMMetadataRef Expr
A complex location expression for the variable.
LLVMMetadataRef DebugLoc
Debug info location.
LLVMBasicBlockRef Block
Basic block acting as a location for the new intrinsic.