[llvm-branch-commits] [llvm-gcc-branch] r70622 - /llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp

Bill Wendling isanbard at gmail.com
Fri May 1 18:57:16 PDT 2009


Author: void
Date: Fri May  1 20:57:16 2009
New Revision: 70622

URL: http://llvm.org/viewvc/llvm-project?rev=70622&view=rev
Log:
Don't emit debugging info for objc metadata.

Modified:
    llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp

Modified: llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp?rev=70622&r1=70621&r2=70622&view=diff

==============================================================================
--- llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Dib/gcc/llvm-backend.cpp Fri May  1 20:57:16 2009
@@ -1389,7 +1389,9 @@
   // No debug info for globals when optimization is on.  While this is
   // something that would be accurate and useful to a user, it currently
   // affects some optimizations that, e.g., count uses.
-  if (TheDebugInfo && !optimize) TheDebugInfo->EmitGlobalVariable(GV, decl); 
+  if (TheDebugInfo && !optimize)
+    if (GV->getSection() == "llvm.metadata")
+      TheDebugInfo->EmitGlobalVariable(GV, decl);
 
   TREE_ASM_WRITTEN(decl) = 1;
   timevar_pop(TV_LLVM_GLOBALS);





More information about the llvm-branch-commits mailing list