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
scope
DINodeScope for the expression
name
LazyEncodedStringSource language name of the expression
linkageName
LazyEncodedStringLinkage name of the expression
file
DIFileSource file for the expression
lineNo
uintSource Line number for the expression
type
DITypeDIType of the expression
isLocalToUnit
boolFlag to indicate if this is local to the compilation unit (e.g. static in C)
value
DIExpressionValue for the variable
declaration
DINodeDINode for the declaration of the variable
bitAlign
uintBit alignment for the expression
Returns
- DIGlobalVariableExpression
DIGlobalVariableExpression from the parameters