Use only 1 knob to enable exceptions on Darwin :).
authorAnton Korobeynikov <asl@math.spbu.ru>
Tue, 21 Aug 2007 00:31:30 +0000 (00:31 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Tue, 21 Aug 2007 00:31:30 +0000 (00:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41208 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetAsmInfo.cpp

index bf206b4806c3858644c52712eb90e563d6462085..a00d616ca5fee78bd39fb0e7c5dd8fe1c704e111 100644 (file)
@@ -95,6 +95,14 @@ X86TargetAsmInfo::X86TargetAsmInfo(const X86TargetMachine &TM) {
     DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
     DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
     DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
+
+    // Exceptions handling
+    if (!Subtarget->is64Bit())
+      SupportsExceptionHandling = true;
+    AbsoluteEHSectionOffsets = false;
+    DwarfEHFrameSection =
+    ".section __TEXT,__eh_frame,coalesced,no_toc+strip_static_syms+live_support";
+    DwarfExceptionSection = ".section __DATA,__gcc_except_tab";
     break;
 
   case X86Subtarget::isELF: