diff options
author | Devang Patel <dpatel@apple.com> | 2010-12-01 16:59:34 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-12-01 16:59:34 +0000 |
commit | 056745cab659d6ab9888b255d8fd2337da2a4b28 (patch) | |
tree | ddf5ae83d0bff8f3e6fec2c915f0487cd81247c5 /lib | |
parent | 75a08e6aac8e9e7bb24d34234b8bfaa512638b06 (diff) | |
download | external_llvm-056745cab659d6ab9888b255d8fd2337da2a4b28.zip external_llvm-056745cab659d6ab9888b255d8fd2337da2a4b28.tar.gz external_llvm-056745cab659d6ab9888b255d8fd2337da2a4b28.tar.bz2 |
Disable debug info for x86-darwin9 and earlier until PR 8715 and radar 8709290 are fixed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120580 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86MCAsmInfo.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/Target/X86/X86MCAsmInfo.cpp b/lib/Target/X86/X86MCAsmInfo.cpp index f45fdf5..8db12cc 100644 --- a/lib/Target/X86/X86MCAsmInfo.cpp +++ b/lib/Target/X86/X86MCAsmInfo.cpp @@ -67,6 +67,20 @@ X86MCAsmInfoDarwin::X86MCAsmInfoDarwin(const Triple &Triple) { 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; } |