From: Anton Korobeynikov Date: Tue, 21 Aug 2007 00:31:30 +0000 (+0000) Subject: Use only 1 knob to enable exceptions on Darwin :). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=095546ce343ec836e04b4531096e748c91a18bb3;p=oota-llvm.git Use only 1 knob to enable exceptions on Darwin :). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp index bf206b4806c..a00d616ca5f 100644 --- a/lib/Target/X86/X86TargetAsmInfo.cpp +++ b/lib/Target/X86/X86TargetAsmInfo.cpp @@ -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: