ΒΆLLVMMetadataRef LLVMDIBuilderCreateFunction(
    LLVMDIBuilderRef Builder,
    LLVMMetadataRef Scope,
    const char* Name,
    size_t NameLen,
    const char* LinkageName,
    size_t LinkageNameLen,
    LLVMMetadataRef File,
    unsigned int LineNo,
    LLVMMetadataRef Ty,
    LLVMBool IsLocalToUnit,
    LLVMBool IsDefinition,
    unsigned int ScopeLine,
    LLVMDIFlags Flags,
    LLVMBool IsOptimized)

Description

Create a new descriptor for the specified subprogram.

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

Parameters

LLVMDIBuilderRef Builder
The \c DIBuilder.
LLVMMetadataRef Scope
Function scope.
const char* Name
Function name.
size_t NameLen
Length of enumeration name.
const char* LinkageName
Mangled function name.
size_t LinkageNameLen
Length of linkage name.
LLVMMetadataRef File
File where this variable is defined.
unsigned int LineNo
Line number.
LLVMMetadataRef Ty
Function type.
LLVMBool IsLocalToUnit
True if this function is not externally visible.
LLVMBool IsDefinition
True if this is a function definition.
unsigned int ScopeLine
Set to the beginning of the scope this starts
LLVMDIFlags Flags
E.g.: \c LLVMDIFlagLValueReference. These flags are used to emit dwarf attributes.
LLVMBool IsOptimized
True if optimization is ON.