[svn r265] generate debug info for global variables only if they don't have external linkage

This commit is contained in:
Christian Kamm
2008-06-10 20:01:04 +02:00
parent cfc8befb5b
commit 4a481678b8

View File

@@ -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);
}