From: Anton Korobeynikov Date: Mon, 24 Jan 2011 22:38:40 +0000 (+0000) Subject: Support printing exception section into the current one. This is the case when LSDASe... X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=d4e09787526f105f16c11f091ef6ef67c82da5d3;p=oota-llvm.git Support printing exception section into the current one. This is the case when LSDASection is blank git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124150 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 5f4818187ad..c4db7d38cba 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -451,7 +451,8 @@ void DwarfException::EmitExceptionTable() { } // Begin the exception table. - Asm->OutStreamer.SwitchSection(LSDASection); + if (LSDASection) + Asm->OutStreamer.SwitchSection(LSDASection); Asm->EmitAlignment(2); // Emit the LSDA.