Method CreateGlobalVariableExpression
CreateGlobalVariableExpression(DINode?, LazyEncodedString, LazyEncodedString, DIFile?, uint, DIType?, bool, DIExpression?, DINode?, uint)
Creates a new DIGlobalVariableExpression
DIGlobalVariableExpression CreateGlobalVariableExpression(DINode? scope, LazyEncodedString name, LazyEncodedString linkageName, DIFile? file, uint lineNo, DIType? type, bool isLocalToUnit, DIExpression? value, DINode? declaration = null, uint bitAlign = 0)
Parameters
scopeDINodeScope for the expression
nameLazyEncodedStringSource language name of the expression
linkageNameLazyEncodedStringLinkage name of the expression
fileDIFileSource file for the expression
lineNouintSource Line number for the expression
typeDITypeDIType of the expression
isLocalToUnitboolFlag to indicate if this is local to the compilation unit (e.g. static in C)
valueDIExpressionValue for the variable
declarationDINodeDINode for the declaration of the variable
bitAlignuintBit alignment for the expression
Returns
- DIGlobalVariableExpression
DIGlobalVariableExpression from the parameters