Method AddGlobalInAddressSpace
AddGlobalInAddressSpace(UInt32, ITypeRef, String)
Adds a global to this module with a specific address space
Declaration
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, string name)
Parameters
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, string name)
UInt32 | addressSpace | Address space to add the global to |
ITypeRef | typeRef | Type of the value |
String | name | Name of the global |
Returns
GlobalVariable | The new GlobalVariable |
AddGlobalInAddressSpace(UInt32, ITypeRef, Boolean, Linkage, Constant)
Adds a global to this module
Declaration
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal)
Parameters
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal)
UInt32 | addressSpace | Address space to add the global to |
ITypeRef | typeRef | Type of the value |
Boolean | isConst | Flag to indicate if this global is a constant |
Linkage | linkage | Linkage type for this global |
Constant | constVal | Initial value for the global |
Returns
GlobalVariable | New global variable |
AddGlobalInAddressSpace(UInt32, ITypeRef, Boolean, Linkage, Constant, String)
Adds a global to this module
Declaration
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal, string name)
Parameters
public GlobalVariable AddGlobalInAddressSpace(uint addressSpace, ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal, string name)
UInt32 | addressSpace | Address space to add the global to |
ITypeRef | typeRef | Type of the value |
Boolean | isConst | Flag to indicate if this global is a constant |
Linkage | linkage | Linkage type for this global |
Constant | constVal | Initial value for the global |
String | name | Name of the variable |
Returns
GlobalVariable | New global variable |