summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-06-22 22:22:24 +0000
committerBill Wendling <isanbard@gmail.com>2011-06-22 22:22:24 +0000
commitd3463043738ad3946705513539fe8ca3b65e28af (patch)
tree055f938543edb2291fdf39b109b33a8bb3aeef32 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent64ec101eb6a5d21bcb7bedc334b793c45cd15466 (diff)
downloadbcm5719-llvm-d3463043738ad3946705513539fe8ca3b65e28af.tar.gz
bcm5719-llvm-d3463043738ad3946705513539fe8ca3b65e28af.zip
Add a __LD,__compact_unwind section.
If the linker supports it, this will hold the CIE and FDE information in a compact format. The implementation of the compact unwinding emission is coming soon. llvm-svn: 133658
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
index 2da1bd48fb1..3f346a35957 100644
--- a/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
+++ b/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
@@ -605,6 +605,12 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx,
// Exception Handling.
LSDASection = getContext().getMachOSection("__TEXT", "__gcc_except_tab", 0,
SectionKind::getReadOnlyWithRel());
+
+ CompactUnwindSection =
+ getContext().getMachOSection("__LD", "__compact_unwind",
+ MCSectionMachO::S_ATTR_DEBUG,
+ SectionKind::getReadOnly());
+
// Debug Information.
DwarfAbbrevSection =
getContext().getMachOSection("__DWARF", "__debug_abbrev",
OpenPOWER on IntegriCloud