Click or drag to resize
Llvm.NET LogoNativeModuleAddGlobal Method (ITypeRef, String)

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

Adds a global to this module

Namespace:  Llvm.NET
Assembly:  Llvm.NET (in Llvm.NET.dll) Version: 3.8.6158
Syntax
C#
public GlobalVariable AddGlobal(
	ITypeRef typeRef,
	string name
)

Parameters

typeRef
Type: Llvm.NET.TypesITypeRef
Type of the global's value
name
Type: SystemString
Name of the global

Return Value

Type: GlobalVariable
The new GlobalVariable
See Also