[llvm-commits] [llvm] r120580 - /llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

Devang Patel dpatel at apple.com
Wed Dec 1 08:59:34 PST 2010


Author: dpatel
Date: Wed Dec  1 10:59:34 2010
New Revision: 120580

URL: http://llvm.org/viewvc/llvm-project?rev=120580&view=rev
Log:
Disable debug info for x86-darwin9 and earlier until PR 8715 and radar 8709290 are fixed.

Modified:
    llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp?rev=120580&r1=120579&r2=120580&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86MCAsmInfo.cpp Wed Dec  1 10:59:34 2010
@@ -67,6 +67,20 @@
   SupportsDebugInformation = true;
   DwarfUsesInlineInfoSection = true;
 
+  // Disable debugging information for older targets that do not support
+  // .loc and are broken by regressions in .debug_line entries.
+  if (Triple.getOS() == Triple::Darwin) {
+    switch (Triple.getDarwinMajorNumber()) {
+    case 7:
+    case 8:
+    case 9:
+      SupportsDebugInformation = false;
+      break;
+    default:
+      break;
+    }
+  }
+
   // Exceptions handling
   ExceptionsType = ExceptionHandling::Dwarf;
 }





More information about the llvm-commits mailing list