diff options
author | Bill Wendling <isanbard@gmail.com> | 2010-03-02 21:50:35 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2010-03-02 21:50:35 +0000 |
commit | ce153affa370e9cf1b13d60fe696ad5706233447 (patch) | |
tree | 0831ab35810b4e2bc75ee513b61989eda19f8051 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | 5d2bb1b9b34339a20985445d11f4123595988866 (diff) | |
download | bcm5719-llvm-ce153affa370e9cf1b13d60fe696ad5706233447.tar.gz bcm5719-llvm-ce153affa370e9cf1b13d60fe696ad5706233447.zip |
Okay. One last attempt:
Place the LSDA into the TEXT section on Mach-O. This saves space.
llvm-svn: 97592
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp index 47164f733f1..ef6e12990d3 100644 --- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp +++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp @@ -550,8 +550,8 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx, } // 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::getFDEEncoding() const { } unsigned TargetLoweringObjectFileMachO::getTTypeEncoding() const { - return DW_EH_PE_absptr; + return DW_EH_PE_indirect | DW_EH_PE_pcrel | DW_EH_PE_sdata4; } //===----------------------------------------------------------------------===// |