Support printing exception section into the current one. This is the case when LSDASe...
authorAnton Korobeynikov <asl@math.spbu.ru>
Mon, 24 Jan 2011 22:38:40 +0000 (22:38 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Mon, 24 Jan 2011 22:38:40 +0000 (22:38 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124150 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp

index 5f4818187ad932b794194fe196a7e04ca2ff0691..c4db7d38cba94be41dedb7c9ad1f050311b42d67 100644 (file)
@@ -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.