Method ForwardDeclareFunction
ForwardDeclareFunction(DIScope?, LazyEncodedString, LazyEncodedString, DIFile?, uint, DISubroutineType, bool, bool, uint, DebugInfoFlags, bool)
Creates a new forward declaration to a function
public 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
DIScopeDIScope for the declaration
name
LazyEncodedStringName of the function as it appears in source
mangledName
LazyEncodedStringmangled name of the function (for linker)
file
DIFileSource file location for the function
line
uintstarting line of the declaration
subroutineType
DISubroutineTypeSignature for the function
isLocalToUnit
boolFlag to indicate if this declaration is local to the compilation unit
isDefinition
boolFlag to indicate if this is a definition
scopeLine
uintLine of the first scope block
debugFlags
DebugInfoFlagsDebugInfoFlags for the function
isOptimized
boolFlag to indicate if the function is optimized
Returns
- DISubProgram
Subprogram as a forward declaration