Pass isDefined parameter to createGlobalVariableExpression()
This commit is contained in:
parent
f77f338151
commit
aa9d02ea53
1 changed files with 3 additions and 0 deletions
|
@ -827,6 +827,9 @@ extern "C" LLVMMetadataRef LLVMRustDIBuilderCreateStaticVariable(
|
|||
llvm::DIGlobalVariableExpression *VarExpr = Builder->createGlobalVariableExpression(
|
||||
unwrapDI<DIDescriptor>(Context), Name, LinkageName,
|
||||
unwrapDI<DIFile>(File), LineNo, unwrapDI<DIType>(Ty), IsLocalToUnit,
|
||||
#if LLVM_VERSION_GE(10, 0)
|
||||
/* isDefined */ true,
|
||||
#endif
|
||||
InitExpr, unwrapDIPtr<MDNode>(Decl),
|
||||
#if LLVM_VERSION_GE(8, 0)
|
||||
/* templateParams */ nullptr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue