mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-26 09:33:13 +01:00
Remove DMDV1 and DMDV2.
This commit is contained in:
@@ -298,11 +298,7 @@ static llvm::DIType dwarfCompositeType(Type* type)
|
||||
|
||||
static llvm::DIGlobalVariable dwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd)
|
||||
{
|
||||
#if DMDV2
|
||||
assert(vd->isDataseg() || (vd->storage_class & (STCconst | STCimmutable) && vd->init));
|
||||
#else
|
||||
assert(vd->isDataseg());
|
||||
#endif
|
||||
|
||||
return gIR->dibuilder.createGlobalVariable(
|
||||
vd->toChars(), // name TODO: mangle() or toPrettyChars() instead?
|
||||
|
||||
Reference in New Issue
Block a user