changeset 248:890b4862ec6c trunk

[svn r265] generate debug info for global variables only if they don't have external linkage
author ChristianK
date Tue, 10 Jun 2008 20:01:04 +0200
parents 56199753e637
children fa9fef362a98
files gen/toobj.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/toobj.cpp	Mon Jun 09 17:49:30 2008 +0200
+++ b/gen/toobj.cpp	Tue Jun 10 20:01:04 2008 +0200
@@ -575,7 +575,7 @@
         else
             gIR->constInitList.push_back(this);
 
-        if (global.params.symdebug)
+        if (global.params.symdebug && _linkage != llvm::GlobalValue::ExternalLinkage)
             DtoDwarfGlobalVariable(gvar, this);
     }