aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfException.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-08-18 16:56:17 +0000
committerChris Lattner <sabre@nondot.org>2009-08-18 16:56:17 +0000
commit35c3531754c392a533921a465a22f67f7e8fb743 (patch)
tree0f5f2795bd239d739fa2fca1035cce5c9aafc895 /lib/CodeGen/AsmPrinter/DwarfException.cpp
parent755baa83291b1ff97d217f308f74a82abdf107fe (diff)
fix COFF targets (mingw/cygwin) to provide ehframe and LSDA sections
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79346 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 7ab0bb0975..06dfac4550 100644
--- a/lib/CodeGen/AsmPrinter/DwarfException.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp
@@ -56,10 +56,7 @@ void DwarfException::EmitCommonEHFrame(const Function *Personality,
TD->getPointerSize() : -TD->getPointerSize();
// Begin eh frame section.
- // FIXME: THIS IS A HORRIBLE HACK. MingW isn't specifying an EHFrame section.
- if (const MCSection *EHFrameSec =
- Asm->getObjFileLowering().getEHFrameSection())
- Asm->SwitchToSection(EHFrameSec);
+ Asm->SwitchToSection(Asm->getObjFileLowering().getEHFrameSection());
if (TAI->is_EHSymbolPrivate())
O << TAI->getPrivateGlobalPrefix();
@@ -153,10 +150,7 @@ void DwarfException::EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo) {
const Function *TheFunc = EHFrameInfo.function;
- // FIXME: THIS IS A HORRIBLE HACK. MingW isn't specifying an EHFrame section.
- if (const MCSection *EHFrameSec =
- Asm->getObjFileLowering().getEHFrameSection())
- Asm->SwitchToSection(EHFrameSec);
+ Asm->SwitchToSection(Asm->getObjFileLowering().getEHFrameSection());
// Externally visible entry into the functions eh frame info. If the
// corresponding function is static, this should not be externally visible.