Clarify the LSDASection NULL check
authorAnton Korobeynikov <asl@math.spbu.ru>
Sun, 30 Jan 2011 22:07:31 +0000 (22:07 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sun, 30 Jan 2011 22:07:31 +0000 (22:07 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124569 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp

index c4db7d38cba94be41dedb7c9ad1f050311b42d67..967a2783da14cd70139bcfc5a7d181476dfca21b 100644 (file)
@@ -451,6 +451,8 @@ void DwarfException::EmitExceptionTable() {
   }
 
   // Begin the exception table.
+  // Sometimes we want not to emit the data into separate section (e.g. ARM
+  // EHABI). In this case LSDASection will be NULL.
   if (LSDASection)
     Asm->OutStreamer.SwitchSection(LSDASection);
   Asm->EmitAlignment(2);