From c784feba8e825a0eafc80f00fec8862e643a9e1a Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 2 Aug 2009 06:52:36 +0000 Subject: convert EHFrameSection to be managed by TLOF instead of TAI. llvm-svn: 77888 --- llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AsmPrinter') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index aa52d87f278..fec1ad75573 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -56,7 +56,7 @@ void DwarfException::EmitCommonEHFrame(const Function *Personality, TD->getPointerSize() : -TD->getPointerSize(); // Begin eh frame section. - Asm->SwitchToTextSection(TAI->getDwarfEHFrameSection()); + Asm->SwitchToSection(Asm->getObjFileLowering().getEHFrameSection()); if (TAI->is_EHSymbolPrivate()) O << TAI->getPrivateGlobalPrefix(); @@ -150,7 +150,7 @@ void DwarfException::EmitEHFrame(const FunctionEHFrameInfo &EHFrameInfo) { const Function *TheFunc = EHFrameInfo.function; - Asm->SwitchToTextSection(TAI->getDwarfEHFrameSection()); + 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. -- cgit v1.2.3