Method CreateFunction
CreateFunction(DIScope, String, String, DIFile, UInt32, DISubroutineType, Boolean, Boolean, UInt32, DebugInfoFlags, Boolean, IrFunction)
Factory method to create a DISubProgram with debug information
Declaration
public DISubProgram CreateFunction(DIScope scope, [CanBeNull] string name, [CanBeNull] string mangledName, [CanBeNull] DIFile file, uint line, DISubroutineType signatureType, bool isLocalToUnit, bool isDefinition, uint scopeLine, DebugInfoFlags debugFlags, bool isOptimized, IrFunction function)
Parameters
public DISubProgram CreateFunction(DIScope scope, [CanBeNull] string name, [CanBeNull] string mangledName, [CanBeNull] DIFile file, uint line, DISubroutineType signatureType, bool isLocalToUnit, bool isDefinition, uint scopeLine, DebugInfoFlags debugFlags, bool isOptimized, IrFunction function)
DIScope | scope | DIScope for the function |
String | name | Name of the function as it appears in the source language |
String | mangledName | Linkage (mangled) name of the function |
DIFile | file | DIFile containing the function |
UInt32 | line | starting line of the function definition |
DISubroutineType | signatureType | DISubroutineType for the function's signature type |
Boolean | isLocalToUnit | Flag to indicate if this function is local to the compilation unit or available externally |
Boolean | isDefinition | Flag to indicate if this is a definition or a declaration only |
UInt32 | scopeLine | starting line of the first scope of the function's body |
DebugInfoFlags | debugFlags | DebugInfoFlags for this function |
Boolean | isOptimized | Flag to indicate if this function is optimized |
IrFunction | function | Underlying LLVM IrFunction to attach debug info to |
Returns
DISubProgram | DISubProgram created based on the input parameters |