mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 19:06:02 +03:00
createGlobalVariable() requires a context with LLVM 3.6
This commit is contained in:
parent
4c9beb7b47
commit
f5a42f2620
1 changed files with 3 additions and 0 deletions
|
@ -791,6 +791,9 @@ llvm::DIGlobalVariable ldc::DIBuilder::EmitGlobalVariable(llvm::GlobalVariable *
|
|||
assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCimmutable) && vd->init));
|
||||
|
||||
return DBuilder.createGlobalVariable(
|
||||
#if LDC_LLVM_VER >= 306
|
||||
GetCurrentScope(), // context
|
||||
#endif
|
||||
vd->toChars(), // name
|
||||
#if LDC_LLVM_VER >= 303
|
||||
mangle(vd), // linkage name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue