Classify functions by EH personality type rather than using the triple
[oota-llvm.git] / lib / CodeGen / AsmPrinter / EHStreamer.cpp
index 1bc86f6c222a914893da634fb1b421bcae943037..4841814afff954b64c4e242831f84374d2c56cb0 100644 (file)
@@ -253,7 +253,7 @@ computeCallSiteTable(SmallVectorImpl<CallSiteEntry> &CallSites,
       // instruction between the previous try-range and this one may throw,
       // create a call-site entry with no landing pad for the region between the
       // try-ranges.
-      if (SawPotentiallyThrowing && !IsSJLJ) {
+      if (SawPotentiallyThrowing && Asm->MAI->usesCFIForEH()) {
         CallSiteEntry Site = { LastLabel, BeginLabel, nullptr, 0 };
         CallSites.push_back(Site);
         PreviousIsInvoke = false;