diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-02 06:52:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-02 06:52:36 +0000 |
commit | c784feba8e825a0eafc80f00fec8862e643a9e1a (patch) | |
tree | 557394b3adfa32aaa0b933aa815eb2996d575427 /llvm/lib/Target/TargetLoweringObjectFile.cpp | |
parent | bdde99bd426f630be526a71ba8f89cf1fe301e99 (diff) | |
download | bcm5719-llvm-c784feba8e825a0eafc80f00fec8862e643a9e1a.tar.gz bcm5719-llvm-c784feba8e825a0eafc80f00fec8862e643a9e1a.zip |
convert EHFrameSection to be managed by TLOF instead of TAI.
llvm-svn: 77888
Diffstat (limited to 'llvm/lib/Target/TargetLoweringObjectFile.cpp')
-rw-r--r-- | llvm/lib/Target/TargetLoweringObjectFile.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/TargetLoweringObjectFile.cpp b/llvm/lib/Target/TargetLoweringObjectFile.cpp index d04e5c0cd60..38ae71e67d6 100644 --- a/llvm/lib/Target/TargetLoweringObjectFile.cpp +++ b/llvm/lib/Target/TargetLoweringObjectFile.cpp @@ -37,6 +37,7 @@ TargetLoweringObjectFile::TargetLoweringObjectFile() : Ctx(0) { StaticCtorSection = 0; StaticDtorSection = 0; LSDASection = 0; + EHFrameSection = 0; } TargetLoweringObjectFile::~TargetLoweringObjectFile() { @@ -311,6 +312,8 @@ void TargetLoweringObjectFileELF::Initialize(MCContext &Ctx, // adjusted or this should be a data section. LSDASection = getOrCreateSection(".gcc_except_table", false, SectionKind::getReadOnly()); + EHFrameSection = + getOrCreateSection(".eh_frame", false, SectionKind::getDataRel()); } @@ -548,6 +551,9 @@ void TargetLoweringObjectFileMachO::Initialize(MCContext &Ctx, LSDASection = getOrCreateSection("__DATA,__gcc_except_tab", false, SectionKind::getDataRel()); + EHFrameSection = + getOrCreateSection("__TEXT,__eh_frame,coalesced,no_toc+strip_static_syms" + "+live_support", false, SectionKind::getReadOnly()); } const MCSection *TargetLoweringObjectFileMachO:: |