Table of Contents

Method ForwardDeclareFunction

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

ForwardDeclareFunction(DIScope?, LazyEncodedString, LazyEncodedString, DIFile?, uint, DISubroutineType, bool, bool, uint, DebugInfoFlags, bool)

Creates a new forward declaration to a function

DISubProgram ForwardDeclareFunction(DIScope? scope, LazyEncodedString name, LazyEncodedString mangledName, DIFile? file, uint line, DISubroutineType subroutineType, bool isLocalToUnit, bool isDefinition, uint scopeLine, DebugInfoFlags debugFlags, bool isOptimized)

Parameters

scope DIScope

DIScope for the declaration

name LazyEncodedString

Name of the function as it appears in source

mangledName LazyEncodedString

mangled name of the function (for linker)

file DIFile

Source file location for the function

line uint

starting line of the declaration

subroutineType DISubroutineType

Signature for the function

isLocalToUnit bool

Flag to indicate if this declaration is local to the compilation unit

isDefinition bool

Flag to indicate if this is a definition

scopeLine uint

Line of the first scope block

debugFlags DebugInfoFlags

DebugInfoFlags for the function

isOptimized bool

Flag to indicate if the function is optimized

Returns

DISubProgram

Subprogram as a forward declaration