[llvm-commits] [llvm-gcc-4.2] r105504 - in /llvm-gcc-4.2/trunk/gcc: config/darwin.c llvm-debug.cpp
Devang Patel
dpatel at apple.com
Fri Jun 4 16:47:08 PDT 2010
Author: dpatel
Date: Fri Jun 4 18:47:08 2010
New Revision: 105504
URL: http://llvm.org/viewvc/llvm-project?rev=105504&view=rev
Log:
Do not emit debug info for an anonymous global variable for a CFString.
Radar 8055687.
Modified:
llvm-gcc-4.2/trunk/gcc/config/darwin.c
llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/darwin.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/darwin.c?rev=105504&r1=105503&r2=105504&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/darwin.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/darwin.c Fri Jun 4 18:47:08 2010
@@ -2633,6 +2633,7 @@
var = build_decl (CONST_DECL, NULL, TREE_TYPE (constructor));
DECL_INITIAL (var) = constructor;
TREE_STATIC (var) = 1;
+ DECL_IGNORED_P (var) = 1;
pushdecl_top_level (var);
desc->constructor = var;
}
Modified: llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp?rev=105504&r1=105503&r2=105504&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-debug.cpp Fri Jun 4 18:47:08 2010
@@ -573,7 +573,7 @@
/// EmitGlobalVariable - Emit information about a global variable.
///
void DebugInfo::EmitGlobalVariable(GlobalVariable *GV, tree decl) {
- if (DECL_ARTIFICIAL(decl))
+ if (DECL_ARTIFICIAL(decl) || DECL_IGNORED_P(decl))
return;
// Gather location information.
expanded_location Loc = expand_location(DECL_SOURCE_LOCATION(decl));
More information about the llvm-commits
mailing list