mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fixed debug info for globals in D2.
This commit is contained in:
@@ -364,7 +364,11 @@ static llvm::DICompositeType dwarfCompositeType(Type* type, llvm::DICompileUnit
|
||||
|
||||
static llvm::DIGlobalVariable dwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd)
|
||||
{
|
||||
#if DMDV2
|
||||
assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCinvariant) && vd->init));
|
||||
#else
|
||||
assert(vd->isDataseg());
|
||||
#endif
|
||||
llvm::DICompileUnit compileUnit = DtoDwarfCompileUnit(gIR->dmodule);
|
||||
|
||||
return gIR->difactory.CreateGlobalVariable(
|
||||
|
||||
Reference in New Issue
Block a user