summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-03-02 21:50:35 +0000
committerBill Wendling <isanbard@gmail.com>2010-03-02 21:50:35 +0000
commitce153affa370e9cf1b13d60fe696ad5706233447 (patch)
tree0831ab35810b4e2bc75ee513b61989eda19f8051 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent5d2bb1b9b34339a20985445d11f4123595988866 (diff)
downloadbcm5719-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.cpp6
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;
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud