Table of Contents

Method CreateFunction

Namespace
Ubiquity.NET.Llvm.DebugInfo
Assembly
Ubiquity.NET.Llvm.dll

CreateFunction(DIScope?, LazyEncodedString, LazyEncodedString, DIFile?, uint, DISubroutineType?, bool, bool, uint, DebugInfoFlags, bool, Function)

Factory method to create a DISubProgram with debug information

DISubProgram CreateFunction(DIScope? scope, LazyEncodedString name, LazyEncodedString mangledName, DIFile? file, uint line, DISubroutineType? signatureType, bool isLocalToUnit, bool isDefinition, uint scopeLine, DebugInfoFlags debugFlags, bool isOptimized, Function function)

Parameters

scope DIScope

DIScope for the function

name LazyEncodedString

Name of the function as it appears in the source language

mangledName LazyEncodedString

Linkage (mangled) name of the function

file DIFile

DIFile containing the function

line uint

starting line of the function definition

signatureType DISubroutineType

DISubroutineType for the function's signature type

isLocalToUnit bool

Flag to indicate if this function is local to the compilation unit or available externally

isDefinition bool

Flag to indicate if this is a definition or a declaration only

scopeLine uint

starting line of the first scope of the function's body

debugFlags DebugInfoFlags

DebugInfoFlags for this function

isOptimized bool

Flag to indicate if this function is optimized

function Function

Underlying LLVM Function to attach debug info to

Returns

DISubProgram

DISubProgram created based on the input parameters