Click or drag to resize
Llvm.NET LogoNativeModuleCreateFunction Method (DIScope, String, String, DIFile, UInt32, DebugFunctionType, Boolean, Boolean, UInt32, DebugInfoFlags, Boolean, MDNode, MDNode)

[This is preliminary documentation and is subject to change.]

Creates a Function definition with Debug information

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Function CreateFunction(
	DIScope scope,
	string name,
	string linkageName,
	DIFile file,
	uint line,
	DebugFunctionType signature,
	bool isLocalToUnit,
	bool isDefinition,
	uint scopeLine,
	DebugInfoFlags debugFlags,
	bool isOptimized,
	MDNode tParam = null,
	MDNode decl = null
)

Parameters

scope
Type: Llvm.NET.DebugInfoDIScope
Containing scope for the function
name
Type: SystemString
Name of the function in source language form
linkageName
Type: SystemString
Mangled linker visible name of the function (may be same as name if mangling not required by source language
file
Type: Llvm.NET.DebugInfoDIFile
File containing the function definition
line
Type: SystemUInt32
Line number of the function definition
signature
Type: Llvm.NET.DebugInfoDebugFunctionType
LLVM Function type for the signature of the function
isLocalToUnit
Type: SystemBoolean
Flag to indicate if this function is local to the compilation unit
isDefinition
Type: SystemBoolean
Flag to indicate if this is a definition
scopeLine
Type: SystemUInt32
First line of the function's outermost scope, this may not be the same as the first line of the function definition due to source formatting
debugFlags
Type: Llvm.NET.DebugInfoDebugInfoFlags
Additional flags describing this function
isOptimized
Type: SystemBoolean
Flag to indicate if this function is optimized
tParam (Optional)
Type: Llvm.NETMDNode
decl (Optional)
Type: Llvm.NETMDNode

Return Value

Type: Function
Function described by the arguments
See Also