Classify functions by EH personality type rather than using the triple
[oota-llvm.git] / lib / CodeGen / AsmPrinter / DwarfCFIException.cpp
index 0bbe1ab1e5cdfadcd0028c08bc7a84b318a31bf7..f45b24c17f7cb99e46b4a28270c74928a01e28cd 100644 (file)
@@ -51,7 +51,8 @@ void DwarfCFIException::endModule() {
   if (moveTypeModule == AsmPrinter::CFI_M_Debug)
     Asm->OutStreamer.EmitCFISections(false, true);
 
-  if (!Asm->MAI->usesItaniumLSDAForExceptions())
+  // SjLj uses this pass and it doesn't need this info.
+  if (!Asm->MAI->usesCFIForEH())
     return;
 
   const TargetLoweringObjectFile &TLOF = Asm->getObjFileLowering();