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
scopeDIScopeDIScope for the declaration
nameLazyEncodedStringName of the function as it appears in source
mangledNameLazyEncodedStringmangled name of the function (for linker)
fileDIFileSource file location for the function
lineuintstarting line of the declaration
subroutineTypeDISubroutineTypeSignature for the function
isLocalToUnitboolFlag to indicate if this declaration is local to the compilation unit
isDefinitionboolFlag to indicate if this is a definition
scopeLineuintLine of the first scope block
debugFlagsDebugInfoFlagsDebugInfoFlags for the function
isOptimizedboolFlag to indicate if the function is optimized
Returns
- DISubProgram
Subprogram as a forward declaration