Revert r82274. It's causing failures in the CINT2006 benchmarks.
authorBill Wendling <isanbard@gmail.com>
Sat, 19 Sep 2009 22:02:37 +0000 (22:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Sat, 19 Sep 2009 22:02:37 +0000 (22:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82336 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/TargetLoweringObjectFile.cpp

index b49164aa177705bee68c727d0ff228c006a484fc..4ee6b92b91fa1ec61d68a0f9d56e5bb1fcb82202 100644 (file)
@@ -782,8 +782,14 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
   }
 
   // Exception Handling.
+#if 1
+  LSDASection = getMachOSection("__DATA", "__gcc_except_tab", 0,
+                                SectionKind::getDataRel());
+#else
+  // FIXME: This is causing failures in the CINT2006 SPEC benchmarks.
   LSDASection = getMachOSection("__TEXT", "__gcc_except_tab", 0,
                                 SectionKind::getReadOnly());
+#endif
   EHFrameSection =
     getMachOSection("__TEXT", "__eh_frame",
                     MCSectionMachO::S_COALESCED |