Click or drag to resize
Llvm.NET LogoNativeModuleAddFunction Method

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

Add a function with the specified signature to the module

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public Function AddFunction(
	string name,
	IFunctionType signature
)

Parameters

name
Type: SystemString
Name of the function to add
signature
Type: Llvm.NET.TypesIFunctionType
Signature of the function

Return Value

Type: Function
Functionmatching the specified signature and name
Remarks
If a matching function already exists it is returned, and therefore the returned Function may have a body and additional attributes. If a function of the same name exists with a different signature an exception is thrown as LLVM does not perform any function overloading.
See Also