Don't emit debugging info for objc metadata.

llvm-svn: 70622
diff --git a/llvm-gcc-4.2/gcc/llvm-backend.cpp b/llvm-gcc-4.2/gcc/llvm-backend.cpp
index a605534..6dadd33 100644
--- a/llvm-gcc-4.2/gcc/llvm-backend.cpp
+++ b/llvm-gcc-4.2/gcc/llvm-backend.cpp
@@ -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);