Method AddGlobal
AddGlobal(ITypeRef, String)
Adds a global to this module
Declaration
public GlobalVariable AddGlobal(ITypeRef typeRef, string name)
Parameters
public GlobalVariable AddGlobal(ITypeRef typeRef, string name)
ITypeRef | typeRef | Type of the value |
String | name | Name of the global |
Returns
GlobalVariable | The new GlobalVariable |
AddGlobal(ITypeRef, Boolean, Linkage, Constant)
Adds a global to this module
Declaration
public GlobalVariable AddGlobal(ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal)
Parameters
public GlobalVariable AddGlobal(ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal)
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 |
AddGlobal(ITypeRef, Boolean, Linkage, Constant, String)
Adds a global to this module
Declaration
public GlobalVariable AddGlobal(ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal, string name)
Parameters
public GlobalVariable AddGlobal(ITypeRef typeRef, bool isConst, Linkage linkage, Constant constVal, string name)
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 |