mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
[svn r265] generate debug info for global variables only if they don't have external linkage
This commit is contained in:
@@ -575,7 +575,7 @@ void VarDeclaration::toObjFile()
|
||||
else
|
||||
gIR->constInitList.push_back(this);
|
||||
|
||||
if (global.params.symdebug)
|
||||
if (global.params.symdebug && _linkage != llvm::GlobalValue::ExternalLinkage)
|
||||
DtoDwarfGlobalVariable(gvar, this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user