From ed299f6fa9f31c6063b9e187e849bca1ae284d12 Mon Sep 17 00:00:00 2001 From: Anton Korobeynikov Date: Sun, 30 Jan 2011 22:07:31 +0000 Subject: [PATCH] Clarify the LSDASection NULL check git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124569 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/AsmPrinter/DwarfException.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index c4db7d38cba..967a2783da1 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -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);