aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2007-08-21 00:31:30 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2007-08-21 00:31:30 +0000
commit095546ce343ec836e04b4531096e748c91a18bb3 (patch)
treedbc8858f582f1aada6d1cbc4964f8d760d211770 /lib/Target/X86
parentb7211a2ce13a0365e0e1dd2f27adda2ee3d1288b (diff)
downloadexternal_llvm-095546ce343ec836e04b4531096e748c91a18bb3.zip
external_llvm-095546ce343ec836e04b4531096e748c91a18bb3.tar.gz
external_llvm-095546ce343ec836e04b4531096e748c91a18bb3.tar.bz2
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
Diffstat (limited to 'lib/Target/X86')
-rw-r--r--lib/Target/X86/X86TargetAsmInfo.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/X86/X86TargetAsmInfo.cpp b/lib/Target/X86/X86TargetAsmInfo.cpp
index bf206b4..a00d616 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: