ΒΆLLVMMetadataRef
LLVMDIBuilderCreateGlobalVariableExpression(
LLVMDIBuilderRef Builder,
LLVMMetadataRef Scope,
const char* Name,
size_t NameLen,
const char* Linkage,
size_t LinkLen,
LLVMMetadataRef File,
unsigned int LineNo,
LLVMMetadataRef Ty,
LLVMBool LocalToUnit,
LLVMMetadataRef Expr,
LLVMMetadataRef Decl,
uint32_t AlignInBits)
LLVMMetadataRef
LLVMDIBuilderCreateGlobalVariableExpression(
LLVMDIBuilderRef Builder,
LLVMMetadataRef Scope,
const char* Name,
size_t NameLen,
const char* Linkage,
size_t LinkLen,
LLVMMetadataRef File,
unsigned int LineNo,
LLVMMetadataRef Ty,
LLVMBool LocalToUnit,
LLVMMetadataRef Expr,
LLVMMetadataRef Decl,
uint32_t AlignInBits)
Description
Create a new descriptor for the specified variable.
Declared at: llvm/include/llvm-c/DebugInfo.h:1114
Parameters
- LLVMDIBuilderRef Builder
- LLVMMetadataRef Scope
- Variable scope.
- const char* Name
- Name of the variable.
- size_t NameLen
- The length of the C string passed to \c Name.
- const char* Linkage
- Mangled name of the variable.
- size_t LinkLen
- The length of the C string passed to \c Linkage.
- LLVMMetadataRef File
- File where this variable is defined.
- unsigned int LineNo
- Line number.
- LLVMMetadataRef Ty
- Variable Type.
- LLVMBool LocalToUnit
- Boolean flag indicate whether this variable is externally visible or not.
- LLVMMetadataRef Expr
- The location of the global relative to the attached GlobalVariable.
- LLVMMetadataRef Decl
- Reference to the corresponding declaration. variables.
- uint32_t AlignInBits
- Variable alignment(or 0 if no alignment attr was specified)