[llvm-commits] [llvm] r97592 - /llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Bill Wendling isanbard at gmail.com
Tue Mar 2 13:50:36 PST 2010


Author: void
Date: Tue Mar  2 15:50:35 2010
New Revision: 97592

URL: http://llvm.org/viewvc/llvm-project?rev=97592&view=rev
Log:
Okay. One last attempt:

Place the LSDA into the TEXT section on Mach-O. This saves space.

Modified:
    llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp

Modified: llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp?rev=97592&r1=97591&r2=97592&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (original)
+++ llvm/trunk/lib/CodeGen/TargetLoweringObjectFileImpl.cpp Tue Mar  2 15:50:35 2010
@@ -550,8 +550,8 @@
   }
 
   // Exception Handling.
-  LSDASection = getMachOSection("__DATA", "__gcc_except_tab", 0,
-                                SectionKind::getDataRel());
+  LSDASection = getMachOSection("__TEXT", "__gcc_except_tab", 0,
+                                SectionKind::getReadOnlyWithRel());
   EHFrameSection =
     getMachOSection("__TEXT", "__eh_frame",
                     MCSectionMachO::S_COALESCED |
@@ -779,7 +779,7 @@
 }
 
 unsigned TargetLoweringObjectFileMachO::getTTypeEncoding() const {
-  return DW_EH_PE_absptr;
+  return DW_EH_PE_indirect | DW_EH_PE_pcrel | DW_EH_PE_sdata4;
 }
 
 //===----------------------------------------------------------------------===//





More information about the llvm-commits mailing list