 | DebugInfoBuilderCreateFunction Method |
[This is preliminary documentation and is subject to change.]
Namespace:
Llvm.NET.DebugInfo
Assembly:
Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntaxpublic DISubProgram CreateFunction(
DIScope scope,
string name,
string mangledName,
DIFile file,
uint line,
DISubroutineType signatureType,
bool isLocalToUnit,
bool isDefinition,
uint scopeLine,
DebugInfoFlags debugFlags,
bool isOptimized,
Function function,
MDNode typeParameter = null,
MDNode declaration = null
)
Parameters
- scope
- Type: Llvm.NET.DebugInfoDIScope
DIScope for the function - name
- Type: SystemString
Name of the function as it appears in the source language - mangledName
- Type: SystemString
Linkage (mangled) name of the function - file
- Type: Llvm.NET.DebugInfoDIFile
DIFile containing the function - line
- Type: SystemUInt32
starting line of the function definition - signatureType
- Type: Llvm.NET.DebugInfoDISubroutineType
DISubroutineType for the function's signature type - isLocalToUnit
- Type: SystemBoolean
Flag to indicate if this function is local to the compilation unit or available externally - isDefinition
- Type: SystemBoolean
Flag to indicate if this is a definition or a declaration only - scopeLine
- Type: SystemUInt32
starting line of the first scope of the function's body - debugFlags
- Type: Llvm.NET.DebugInfoDebugInfoFlags
DebugInfoFlags for this function - isOptimized
- Type: SystemBoolean
Flag to indicate if this function is optimized - function
- Type: Llvm.NET.ValuesFunction
Underlying LLVM Function to attach debug info to - typeParameter (Optional)
- Type: Llvm.NETMDNode
Template parameter [default = null] - declaration (Optional)
- Type: Llvm.NETMDNode
Template declarations [default = null]
Return Value
Type:
DISubProgram
See Also