[cfe-commits] r86308 - /cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Devang Patel dpatel at apple.com
Fri Nov 6 16:10:18 PST 2009


Author: dpatel
Date: Fri Nov  6 18:10:18 2009
New Revision: 86308

URL: http://llvm.org/viewvc/llvm-project?rev=86308&view=rev
Log:
Do not emit linkage name for global variables. It confuses gdb, because it picks up AT_MIPS_linkage_name and ignores AT_name.

Modified:
    cfe/trunk/lib/CodeGen/CGDebugInfo.cpp

Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=86308&r1=86307&r2=86308&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Nov  6 18:10:18 2009
@@ -1409,7 +1409,9 @@
   }
 
   DebugFactory.CreateGlobalVariable(getContext(Decl, Unit), 
-                                    Name, Name, Name, Unit, LineNo,
+                                    Decl->getNameAsString(), 
+                                    Decl->getNameAsString(), 
+                                    NULL, Unit, LineNo,
                                     getOrCreateType(T, Unit),
                                     Var->hasInternalLinkage(),
                                     true/*definition*/, Var);





More information about the cfe-commits mailing list